FPS death with lots of map tags
Posted: Sun Jun 24, 2018 11:19 pm
I play on a server that uses a scenario that had a bug that generated a lot of map tags (say, 5000+). For whatever reason, the render is fine when zoomed out but as you zoom in to where the stacked tags were located, the FPS would drop lower and lower (to less than 1FPS eventually) when zooming in closer and closer. One thing in particular that seems odd is that it gets even worse when the map tag isn't even visible any more and you're viewing the main game rather than the map representation, suggesting that the tag icons are rendered but not displayed even when they shouldn't be rendered and displayed. On running a profiler, the functions consuming the most time are , and I have an intermediate understanding of computer graphics and it seems as though scaling a sprite or raster would cost the same whether zoomed in or zoomed out when done properly so I'm not sure if maybe some OpenGL call is either not available or not used or the scaling is done in software.
Reproduce this by creating 8000 map tags with icons at {0,0} and zoom into the location in map view.
Code: Select all
RealOrientation::RealOrientation
Code: Select all
SignalID::isZero
Code: Select all
SpriteDrawOrder::SpriteDrawOrder
Reproduce this by creating 8000 map tags with icons at {0,0} and zoom into the location in map view.