Optimize Render Performance of Stars Plugin
Open, LowPublic

Description

Use a pixmap cache with batch rendering (stars sorted at startup).

nienhueser moved this task from Backlog to Vector Rendering on the Marble board.
rahn added a subscriber: rahn.Nov 15 2016, 6:12 PM
  • 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.
rahn claimed this task.Nov 15 2016, 6:37 PM
rahn added a comment.Nov 23 2016, 7:13 PM

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).

rahn lowered the priority of this task from Normal to Low.Nov 23 2016, 7:13 PM