Improve Overlay Rendering
ClosedPublic

Authored by murveit on Apr 25 2020, 10:09 PM.

Details

Summary

Previous PR to reduce fitsview zoom memory use created pixelated rendering for some overlays
with large amount of zoom--e.g. when using a small view (e.g. around a focus view with subframe enabled.
Here we employ a different rendering strategy when the view has a smaller number of pixels (and thus
memory use shouldn't be as much of an issue) so that the rendering is smoother.

Test Plan

Load fits images, try all the overlays, zoom in and out.
Overlays should not change with images greater than a megapixel.
Try this with various views with subframing (e.g. focus), and the rendering should be less pixelated.

Diff Detail

Repository
R321 KStars
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
murveit created this revision.Apr 25 2020, 10:09 PM
Restricted Application added a project: KDE Edu. · View Herald TranscriptApr 25 2020, 10:09 PM
Restricted Application added a subscriber: kde-edu. · View Herald Transcript
murveit requested review of this revision.Apr 25 2020, 10:09 PM
mutlaqja accepted this revision.Apr 26 2020, 12:13 PM
This revision is now accepted and ready to land.Apr 26 2020, 12:13 PM
This revision was automatically updated to reflect the committed changes.