-
-
Notifications
You must be signed in to change notification settings - Fork 308
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
Test picking #4459
Test picking #4459
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(fig)
|
vol = volume!(scene, 80..110, 320..350, -1..1, rand(2,2,2)) | ||
|
||
# render one frame to generate picking texture | ||
colorbuffer(scene); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, so this was the trick for rendering a frame in CI.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It might also depend on where the file is included. I (now) have it after the refimg tests since those need to work the same for every backend, and it seems to work
Test failures are caused by After some more investigation: begin
using Random
rng = MersenneTwister(1337)
rand(rng)
end
0.22658190197881312 # 1.10.5
0.8834931857854444 # 1.11.0 |
Description
This will add picking tests for all primitives in GLMakie and WGLMakie and probably fix a few issues on the side.
TODO:
Other fixes/Changes:
closes #3265
Type of change
Checklist