-
-
Notifications
You must be signed in to change notification settings - Fork 291
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 bezier marker stroke #2961
Fix bezier marker stroke #2961
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))
|
I added another refimg that includes stroke. It seems like the signed distance field derived for GLMakie is also kind of messed up. Looks like the what's happening with 2D scaling in #2950... Are we introducing that along the way? (Also the sizes differ) |
Huh didn't the sizes match at one point in the past? |
I don't think we checked with stroke. I think I've seen that with other stroked markers though. Or maybe lines. On the bad stroke in GLMakie - this is happening because the sdf is generated with a different aspect ratio here Line 500 in 08d80e9
which results in different width and height scaling here Makie.jl/src/utilities/texture_atlas.jl Line 482 in 08d80e9
|
This will need a new texture atlas. Should I just increment this? Makie.jl/src/utilities/texture_atlas.jl Line 73 in 08d80e9
|
Missing reference imagesFound 1 new images without existing references. |
Missing reference imagesFound 1 new images without existing references. |
Should I see a difference between them? :) |
GLMakie master: vline has blurry edge and hline has shrunken stroke/glow |
ahh now I see it, nice! |
Yes, I think that should be enough! |
Missing reference imagesFound 1 new images without existing references. |
Missing reference imagesFound 1 new images without existing references. |
Missing reference imagesFound 1 new images without existing references. |
Missing reference imagesFound 1 new images without existing references. |
Missing reference imagesFound 1 new images without existing references. |
Description
Without the ClosePath stroke outlines are incomplete in CairoMakie.
Type of change
Checklist