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

Camera3D tweaks #4492

Merged
merged 5 commits into from
Oct 16, 2024
Merged

Camera3D tweaks #4492

merged 5 commits into from
Oct 16, 2024

Conversation

ffreyer
Copy link
Collaborator

@ffreyer ffreyer commented Oct 16, 2024

Description

Changes:

  • switch to using events.tick for keyboard controls
  • turn off circular rotations by default (This is what sometimes inverts your controls when rotating)

Type of change

  • slightly breaking?

Checklist

  • Added an entry in CHANGELOG.md (for new features and breaking changes)
  • Added or changed relevant sections in the documentation
  • Added unit tests for new algorithms, conversion methods, etc.
  • Added reference image tests for new plotting functions, recipes, visual options, etc.

@MakieBot
Copy link
Collaborator

MakieBot commented Oct 16, 2024

Compile Times benchmark

Note, 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)
using create display create display
GLMakie 5.29s (5.17, 5.38) 0.08+- 119.21ms (111.80, 125.00) 5.54+- 453.68ms (421.73, 507.35) 32.34+- 9.38ms (8.27, 10.26) 0.64+- 26.55ms (26.19, 27.10) 0.28+-
master 5.26s (5.13, 5.46) 0.12+- 119.35ms (110.57, 133.58) 9.18+- 463.21ms (417.39, 537.63) 44.99+- 9.82ms (8.80, 10.32) 0.48+- 26.58ms (26.35, 26.68) 0.12+-
evaluation 0.99x invariant, 0.03s (0.31d, 0.58p, 0.10std) 1.00x invariant, -0.14ms (-0.02d, 0.97p, 7.36std) 1.02x invariant, -9.53ms (-0.24d, 0.66p, 38.67std) 1.05x invariant, -0.44ms (-0.77d, 0.17p, 0.56std) 1.00x invariant, -0.03ms (-0.15d, 0.79p, 0.20std)
CairoMakie 4.88s (4.84, 4.92) 0.03+- 112.45ms (108.73, 120.72) 4.25+- 169.40ms (164.79, 176.21) 4.27+- 9.25ms (9.07, 9.52) 0.14+- 1.16ms (1.14, 1.22) 0.03+-
master 4.91s (4.81, 5.02) 0.07+- 112.06ms (108.51, 121.35) 4.35+- 170.49ms (165.35, 187.85) 7.86+- 9.34ms (9.14, 9.66) 0.19+- 1.17ms (1.14, 1.23) 0.03+-
evaluation 1.01x invariant, -0.03s (-0.54d, 0.34p, 0.05std) 1.00x invariant, 0.39ms (0.09d, 0.87p, 4.30std) 1.01x invariant, -1.1ms (-0.17d, 0.75p, 6.06std) 1.01x invariant, -0.09ms (-0.56d, 0.32p, 0.17std) 1.01x invariant, -0.01ms (-0.35d, 0.52p, 0.03std)
WGLMakie 5.49s (5.45, 5.57) 0.04+- 112.82ms (108.06, 132.13) 8.61+- 4.99s (4.92, 5.06) 0.04+- 12.35ms (11.57, 14.72) 1.07+- 129.81ms (126.44, 133.86) 2.75+-
master 5.32s (5.28, 5.42) 0.05+- 110.03ms (108.65, 113.18) 1.48+- 5.37s (5.33, 5.41) 0.03+- 11.90ms (11.76, 12.08) 0.12+- 131.09ms (121.04, 140.82) 7.03+-
evaluation 0.97x slower X, 0.16s (3.78d, 0.00p, 0.04std) 0.98x invariant, 2.78ms (0.45d, 0.43p, 5.05std) 1.08x faster✅, -0.38s (-10.56d, 0.00p, 0.04std) 0.96x invariant, 0.45ms (0.58d, 0.32p, 0.60std) 1.01x invariant, -1.27ms (-0.24d, 0.67p, 4.89std)

@ffreyer ffreyer marked this pull request as ready for review October 16, 2024 20:53
@ffreyer ffreyer merged commit f220f1e into master Oct 16, 2024
18 checks passed
@ffreyer ffreyer deleted the ff/camera-improvements branch October 16, 2024 22:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Merged
Development

Successfully merging this pull request may close these issues.

3 participants