-
-
Notifications
You must be signed in to change notification settings - Fork 313
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
Poor performance of scatter with non-scalar markersize #3307
Comments
Funny that this turns up now, where I just fixed it :D This performance "bug" has been in Makie for quite a while and I literally run into it yesterday and fixed here: |
Oh, wow, what a coincidence! That's so nice, thanks @SimonDanisch! Hate to be pushy, but any change that could be merged by Monday? (It would be good for a presentation I'm giving :-)) |
That's pretty impossible, since it's already end of day here and it will take a while to get those changes out of the beta release and then tag makie ... |
Ok, no worries! Thanks for all your work, it makes me smile every day. |
You could try running your demo on the beta branch? It should be mostly functional |
That, or I just realize you can also use |
That works!! And it looks exactly the same, I think? Wonderful! |
The default circle and Circle have a slight size difference, as Circle has radius 1 I think and the other is adjusted to look good with the other default markers and glyphs. |
Continues #2831 ! Still needs to check, if I rebased correctly and didn't incorrectly apply some of the changes! ## Merged PRs - #2598 - #2746 - #2346 - #2544 - #3082 - #2868 - #3062 - #3106 - #3281 - #3246 ## TODOS - [x] fix flaky test `@test GLMakie.window_size(screen.glscreen) == scaled(screen, (W, H))` - [x] Merge axis type inferences from #2220 - [x] Test on different resolution screens, IJulia, Pluto, VSCode, Windowed - [x] rebase to only have merge commits from the PRs - [x] investigate unexpected speed ups - [x] reset camera settings from tests - [ ] check doc image generation - [x] rethink default near/far in Camera3D (compatability with OIT) - [x] merge #3246 - [x] fix WGLMakie issues/tests: - [x] fix line depth issues (see tests: ~~hexbin colorrange~~ (not new), LaTeXStrings in Axis3, Axis3 axis reversal) - [x] fix lighting of surface with nan points (fixed in #3246) - ~~volume/3D contour artifacts (see 3D Contour with 2D contour slices)~~ not new - ~~artifacting in "colorscale (lines)"~~ not new - [x] GLMakie: - [x] slight outline in "scatter image markers" test - ~~clipping/z-fighting in "volume translated"~~ not new - [x] CairoMakie: - ~~Artfiacting in `colorscale (lines)"~~ not new - ~~markersize in "scatter rotations" changed?~~ not new - ~~color change in "colorscale (poly)"~~ not new - ~~transparency/render order of "OldAxis + Surface"~~ not new - ~~render order in "Merged color mesh"~~ not new - ~~render order of "Surface + wireframe + contour"~~ not new - [x] Check "SpecApi in convert_arguments" (colors swapped?) ## Fixes the following errors - fixes #2721 via #2746 - fixes #1600 via #2746 - fixes #1236 via #2746 - fixes MakieOrg/GeoMakie.jl#133 via #2598 - closes #2522 - closes #3239 via #3246 - fixes #3238 via #3246 - fixes #2985 via #3246 - fixes #3307 via #3281
This is a performance issue. When calling
scatter
with amarkersize
that is a collection (say, aVector
) the performance ofdisplay
is around ~200 times slower than with a scalarmarkersize
.meshscatter
does not have this problem, so I suspect it is a missed optimization of some kind.Reproducer (timings and allocs are second-run)
]activate --temp; add Makie
) YesThe text was updated successfully, but these errors were encountered: