Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Elevation Widget: Lazy Init Polygon to Avoid 2x Route Point Iteration #3477

Merged

Conversation

ericchristoffersen
Copy link
Contributor

Debugging the vlc hangs I found significant time being spend in the elevation widget PaintEvent, it is doing two complete passes over the ergfile points in order to compute something that only changes on widget resize. Moved elevation polygon onto the elevation widget and only recompute when needed. This reduces load and eliminates elevation widget flickering on long route files.

Unfortunately this does nothing for the hangs.

@ericchristoffersen
Copy link
Contributor Author

ericchristoffersen commented Jun 5, 2020

Fixes #3478

amtriathlon and others added 4 commits June 5, 2020 17:59
This gives a more Unix-like behavior when GC is launched from
cmd or PowerShell, including --debug output, on release builds.
Fixed GoldenCheetah#3481
[skip travis]
[publish binaries]
.. still have a problem with chartspaces that have zero items that we
   will need to address, but this at least means when we add an overview
   it isn't blank.

Fixes GoldenCheetah#3476
Potentially uninitialized y
gradientValue reorder member initialization
@amtriathlon amtriathlon merged commit d55cd20 into GoldenCheetah:master Jun 7, 2020
@amtriathlon amtriathlon added this to the 3.6 milestone Jun 7, 2020
@ericchristoffersen ericchristoffersen deleted the ElevationWidgetSpeedup branch November 18, 2020 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants