Kelsidavis-WoWee/include/rendering
Kelsi 6158d56316 Add collision query caching to reduce map traversal overhead
Caches floor height checks to skip redundant collision queries when position
hasn't changed significantly. Major performance improvement during movement.

Problem:
- 17+ collision queries per frame during movement
- getFloorHeight calls expensive (WMO/terrain/M2 raycasts)
- Same queries repeated when barely moving

Solution:
- Cache last collision check position and result
- Skip checks if moved < 15cm (COLLISION_CACHE_DISTANCE)
- Update cache when threshold exceeded or result changes

Implementation:
- Added lastCollisionCheckPos_, cachedFloorHeight_, hasCachedFloor_
- Check distance moved before main ground height query
- Reuse cached floor height for micro-movements
- Full collision check only when meaningfully repositioned

Performance impact:
- Stationary/slow: ~90% reduction in collision queries
- Fast movement: Still helps on same-tile micro-adjustments
- No accuracy loss (15cm is smaller than collision step size)

This addresses "computationally heavy" operations during map traversal.
2026-02-08 22:30:37 -08:00
..
camera.hpp Fix camera occlusion and stabilize WMO/M2 collision behavior 2026-02-03 16:04:21 -08:00
camera_controller.hpp Add collision query caching to reduce map traversal overhead 2026-02-08 22:30:37 -08:00
celestial.hpp Initial commit: wowee native WoW 3.3.5a client 2026-02-02 13:03:22 -08:00
character_preview.hpp Add character screen model preview, item icons, stats panel, and fix targeting bugs 2026-02-06 14:24:38 -08:00
character_renderer.hpp Fix online interactions, UI, and inventory sync 2026-02-06 18:34:45 -08:00
clouds.hpp Initial commit: wowee native WoW 3.3.5a client 2026-02-02 13:03:22 -08:00
frustum.hpp Initial commit: wowee native WoW 3.3.5a client 2026-02-02 13:03:22 -08:00
lens_flare.hpp Initial commit: wowee native WoW 3.3.5a client 2026-02-02 13:03:22 -08:00
lightning.hpp Initial commit: wowee native WoW 3.3.5a client 2026-02-02 13:03:22 -08:00
loading_screen.hpp Add progress bar to loading screen and handle resize during loading 2026-02-06 14:43:18 -08:00
m2_renderer.hpp Implement comprehensive taxi flight optimizations and proper spline paths 2026-02-08 21:32:38 -08:00
material.hpp Initial commit: wowee native WoW 3.3.5a client 2026-02-02 13:03:22 -08:00
mesh.hpp Initial commit: wowee native WoW 3.3.5a client 2026-02-02 13:03:22 -08:00
minimap.hpp Improve targeting, minimap, and bridge collisions 2026-02-07 20:51:53 -08:00
performance_hud.hpp Add gameplay systems: combat, spells, groups, loot, vendors, and UI 2026-02-04 10:31:03 -08:00
renderer.hpp Add mount pitch and roll for realistic taxi flight animation 2026-02-08 22:05:38 -08:00
scene.hpp Initial commit: wowee native WoW 3.3.5a client 2026-02-02 13:03:22 -08:00
shader.hpp Implement shadow mapping pipeline for terrain and models 2026-02-04 16:08:35 -08:00
skybox.hpp Initial commit: wowee native WoW 3.3.5a client 2026-02-02 13:03:22 -08:00
starfield.hpp Initial commit: wowee native WoW 3.3.5a client 2026-02-02 13:03:22 -08:00
swim_effects.hpp Initial commit: wowee native WoW 3.3.5a client 2026-02-02 13:03:22 -08:00
terrain_manager.hpp Implement comprehensive taxi flight optimizations and proper spline paths 2026-02-08 21:32:38 -08:00
terrain_renderer.hpp Preload terrain textures on background thread and fix ramp Z-snapping 2026-02-08 01:16:23 -08:00
texture.hpp Add centralized anisotropic filtering, fog, and Blinn-Phong specular to all renderers 2026-02-04 15:05:46 -08:00
video_player.hpp Play looping MP4 behind auth screen 2026-02-05 15:34:29 -08:00
water_renderer.hpp Refine water rendering, swimming, and underwater visuals 2026-02-03 20:40:59 -08:00
weather.hpp Initial commit: wowee native WoW 3.3.5a client 2026-02-02 13:03:22 -08:00
wmo_renderer.hpp Tighten WMO collision detection when inside buildings 2026-02-08 20:20:37 -08:00
world_map.hpp Add mount rider bob and hoofbeat sounds, improve world map 2026-02-07 18:38:36 -08:00