Reduce city stutter: lower spawn rate, resync interval, M2 render distance

- MAX_SPAWNS_PER_FRAME 8→3 (each spawn does sync M2 load, 5-50ms each)
- Creature resync scan interval 1s→3s (O(N) entity iteration)
- M2 render distance: add 1000+ instance tier at 500 units, reduce 2000+
  tier from 350→300 units to cap draw call count in dense cities
This commit is contained in:
Kelsi 2026-02-25 12:16:55 -08:00
parent 9c25713b72
commit 956e2c8bb1
3 changed files with 6 additions and 4 deletions

View file

@ -786,7 +786,7 @@ void Application::update(float deltaTime) {
if (gameHandler) {
static float creatureResyncTimer = 0.0f;
creatureResyncTimer += deltaTime;
if (creatureResyncTimer >= 1.0f) {
if (creatureResyncTimer >= 3.0f) {
creatureResyncTimer = 0.0f;
glm::vec3 playerPos(0.0f);