Skip to content

perf(render): optimize workspace navigation rendering - #89

Merged
nmrtist merged 1 commit into
mainfrom
perf/workspace-navigation-lod
Sep 4, 2026
Merged

perf(render): optimize workspace navigation rendering#89
nmrtist merged 1 commit into
mainfrom
perf/workspace-navigation-lod

Conversation

@nmrtist

@nmrtist nmrtist commented Sep 4, 2026

Copy link
Copy Markdown
Owner

Summary

  • Reduce workspace pan and zoom cost by rendering line and contour geometry within physical screen-pixel budgets during interaction.
  • Filter contours against the plot viewport before deterministic sampling, and cache the resulting LOD so workspace navigation does not repeatedly scan the full contour geometry.
  • Restore full-detail rendering after 200 ms of inactivity while keeping export rendering unchanged.
  • Update plot viewports in place to avoid cloning materialized figures, and add render statistics plus a release-only multi-page NMR benchmark.

Validation

  • cargo pr-check
  • 13-page release benchmark: Full median 143.75 ms; Interactive median 8.87 ms, with no full contour scans in measured interactive frames.

Bound interactive line and contour geometry by physical screen pixels, then restore full detail after 200 ms of idle time.

Update plot viewports in place and add observable render statistics plus a release-only multi-page NMR benchmark.
@nmrtist
nmrtist merged commit f166fcb into main Sep 4, 2026
11 checks passed
@nmrtist
nmrtist deleted the perf/workspace-navigation-lod branch September 4, 2026 15:48
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 4, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant