Skip to content

perf: speed up panel rendering with canvas + coalesced updates#35

Open
HansRobo wants to merge 1 commit intomainfrom
feat/canvas-render-performance
Open

perf: speed up panel rendering with canvas + coalesced updates#35
HansRobo wants to merge 1 commit intomainfrom
feat/canvas-render-performance

Conversation

@HansRobo
Copy link
Copy Markdown
Member

@HansRobo HansRobo commented Apr 5, 2026

Summary

  • migrate panel rendering from SVG DOM injection to Canvas 2D rendering
  • add cached SVG primitive parsing to reduce repeated parsing cost
  • add dirty-flag + requestAnimationFrame redraw loop
  • coalesce /visualizer_svgs updates in 50ms batches (20Hz)
  • fix aspect-ratio handling so the field is no longer horizontally compressed

Verification

  • npm run build

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.

1 participant