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
Fix repeated rendering with invisible objects #2437
Conversation
Compile Times benchmarkNote, that these numbers may fluctuate on the CI servers, so take them with a grain of salt. All benchmark results are based on the mean time and negative percent mean faster than the base branch. Note, that GLMakie + WGLMakie run on an emulated GPU, so the runtime benchmark is much slower. Results are from running: using_time = @ctime using Backend
# Compile time
create_time = @ctime fig = scatter(1:4; color=1:4, colormap=:turbo, markersize=20, visible=true)
display_time = @ctime Makie.colorbuffer(display(fig))
# Runtime
create_time = @benchmark fig = scatter(1:4; color=1:4, colormap=:turbo, markersize=20, visible=true)
display_time = @benchmark Makie.colorbuffer(display(fig))
|
?
And the GLFW error? |
GLFW error is this: #2439
I don't think we can avoid this until we remove the |
Co-authored-by: Simon <sdanisch@protonmail.com>
Description
Fixes comment in #2336
An invisible object currently never resets it update requests. The pr fixes that. (Going from visible -> invisible needs to trigger a render, so the request needs to be true for an object that just became visible. We then need to reset every objects request, whether they rendered (are visible) or not.)
Type of change