MHeasell/rwe

Poor performance on Abysmal Lake

Opened this issue · 2 comments

RWE runs very slowly/consumes a lot of CPU on Abysmal Lake.

I suspect that this map may have a much larger feature count than most maps due to the large number of foliage features. This is likely to be a significant factor.

PHLF commented

I ran some profiling using callgrind on a -Og build on Caldera's Rim.
Your suspicion regarding the rendering cost of the map features is the right one:

graph

callgrind.zip

I did some very cursory profiling (so, take w/ grain of salt) looking into these further, and my intuition is that a large portion of time is spent fetching database data, rather than actually rendering. So maybe selecting different or implementing specialized structures in a few cases will end up helping.