mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-19 06:13:02 -04:00
Prevents unbounded GPU memory growth in long play sessions where the player visits many zones. Tiles are inserted into a FIFO deque; when the count of successfully-loaded tiles exceeds MAX_TILE_CACHE (128), the oldest entry is destroyed and removed from both the cache map and the deque. At 256×256×4 bytes per tile this caps minimap GPU usage at ~32 MB.
4.4 KiB
4.4 KiB