Throttle proactive tile streaming to reduce post-load hitching

Add 2-second cooldown timer before re-checking for unloaded tiles
when workers are idle, preventing excessive streamTiles() calls
that caused frame hitches right after world load.
This commit is contained in:
Kelsi 2026-03-07 22:40:07 -08:00
parent c13dbf2198
commit 6cf08fbaa6
2 changed files with 15 additions and 10 deletions

View file

@ -348,6 +348,7 @@ private:
int unloadRadius = 7; // Unload tiles beyond this radius
float updateInterval = 0.033f; // Check streaming every 33ms (~30 fps)
float timeSinceLastUpdate = 0.0f;
float proactiveStreamTimer_ = 0.0f;
bool taxiStreamingMode_ = false;
// Tile size constants (WoW ADT specifications)