Merge lp:~wlformyd/stellarium/bug1307444 into lp:stellarium
Proposed by
William Formyduval
Status: | Merged |
---|---|
Merged at revision: | 7138 |
Proposed branch: | lp:~wlformyd/stellarium/bug1307444 |
Merge into: | lp:stellarium |
Diff against target: |
29 lines (+8/-4) 1 file modified
plugins/CompassMarks/src/CompassMarks.cpp (+8/-4) |
To merge this branch: | bzr merge lp:~wlformyd/stellarium/bug1307444 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Alexander Wolf | Approve | ||
gzotti | Approve | ||
Review via email: mp+241228@code.launchpad.net |
Commit message
Reducing the number of compass marks to those on screen to improve performance.
Description of the change
Loop in drawSmallCircleArc is quick at high FOV (5-20 iterations/arc) but becomes larger when FOV is less than 0.5 (1000+ iterations/arc). Proposed solution is to draw only arcs that are visible. This greatly reduces the time spent drawing.
To post a comment you must log in.
Yes, that's fine, thanks!
You can even remove the texture dis-/enable immediately surrounding it, it's redundant with those outside the loop.