Skip to content

Devel/toggle annotation z visibility - #358

Open
joakimlindblad wants to merge 8 commits into
developfrom
devel/toggle_annotation_z_visibility
Open

Devel/toggle annotation z visibility#358
joakimlindblad wants to merge 8 commits into
developfrom
devel/toggle_annotation_z_visibility

Conversation

@joakimlindblad

Copy link
Copy Markdown
Member

Switch whether annotations should be visible in all or only current z-layer.
Relying on same code as cullMarkers() makes it smooth for 100k markers.

@joakimlindblad
joakimlindblad requested a review from Olleesch July 14, 2026 01:15
@joakimlindblad joakimlindblad self-assigned this Jul 14, 2026

@Olleesch Olleesch left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Found one bug where z is not tracked on marker updates, which breaks the marker z-culling. Also made region annotations disappear instantly instead of fading when switching z and annotations are not visible across z-layers to match the visual behavior of markers now with z-culling. See last two commits. Other than that, everything looks good to me!

Two more thoughts:

  • The new duration time in exit marker looks instantaneous to me with only a few markers, maybe too steep of a drop off?
  • Region culling would probably be useful to add at some point to improve scaling with the number of region annotations (+ would then handle z-culling the same way as for markers).

…ed with z-level culling.

 Now separating 2D-cull and z-cull (so 2D-recompute not done if just changing z). Not storing z in markerItem data (only in the actual marker object).
@joakimlindblad
joakimlindblad force-pushed the devel/toggle_annotation_z_visibility branch from a57950a to c2f9cae Compare August 15, 2026 15:26
@joakimlindblad

Copy link
Copy Markdown
Member Author
  • Fixed a bug with manual z-level change through the right-click menu.
  • Fixed a bug where quick fiddle up/down (keyboard z,x) could lead to regions disappearing.
  • Increased the exit animation a bit (agree that it was too short).
  • Region culling in due time for speed, I agree (when we actually stumble on the problem for real).

@joakimlindblad

Copy link
Copy Markdown
Member Author

See also #362

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants