mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-24 08:00:14 +00:00
Reduce render distances for better performance
- Terrain load radius: 2 tiles (was 6) - 25 tiles max vs 169 - WMO render distance: 500 units (was 3000) - M2 doodad distance: 300 units (was 1000)
This commit is contained in:
parent
01bf3b4c08
commit
3e792af3e5
3 changed files with 4 additions and 4 deletions
|
|
@ -364,7 +364,7 @@ void M2Renderer::render(const Camera& camera, const glm::mat4& view, const glm::
|
|||
lastDrawCallCount = 0;
|
||||
|
||||
// Distance-based culling threshold for M2 models
|
||||
const float maxRenderDistance = 1000.0f; // Don't render small doodads beyond this
|
||||
const float maxRenderDistance = 300.0f; // Reduced for performance
|
||||
const float maxRenderDistanceSq = maxRenderDistance * maxRenderDistance;
|
||||
const glm::vec3 camPos = camera.getPosition();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue