Use a pixmap cache with batch rendering (stars sorted at startup).
Description
Description
Comment Actions
- Stars should be sorted on Startup by Magnitude
- Stars should be painted in batches by magnitude (and color).
- There should be a cut-off magnitude that is lower on mobile devices than on the desktop where the whole magnitude range is displayed.
Comment Actions
I've taken the low-hanging fruit:
I changed the magnitude limit from (effectively) 7 to 5. This reduces the amount of stars drawn and calculated.
It saves about 10-20 ms per frame (so about 100ms per second) when stars are visible.
It might be possible to save another 5-10 msecs by batchrendering + proper magnitude order (or maybe nothing at all).