pioneerspacesim/pioneer — pull request #1761 by skapusniak (2012-11-27 22:56:45+00:00)
Title: Sector View Far view performance improvements

On my desktop I go from ~330fps to ~660fps fully zoomed out in Sector View with no panel shown. This appears to even mostly hold when scrolling .

Obviously this is just going from 'silly fps' to 'totally ludicrous fps' for me, and I'm not sure what level of improvement to expect for a more normal starting frame-rate. I'll try to get some measurements on the laptop with Ubuntu tomorrow.

However profiling does seems to show that the usual suspects of Faction::GetNearestFaction, MTRand::Seed, SectorView::GetCached and SectorView::ShrinkCache are much less obviously dominating everything with these two commits in.

It also does seem to show that ShrinkCache is still being called from Update upon occasion, though I'd be a grateful for a code review to confirm that I haven't accidentally turned off shrinking the cache entirely, which I managed to do several times while coding that particular commit.

These don't include any Sector generation changes @Ae-2222 may be working on.