Skip to content

figure: size and reset a Live without drawing a frame - #55

Merged
timzifer merged 1 commit into
mainfrom
perf/live-without-frame
Sep 22, 2026
Merged

timzifer merged 1 commit into
mainfrom
perf/live-without-frame

Conversation

@timzifer

Copy link
Copy Markdown
Owner

Adds Live.SetSize and Live.ResetView — Resize and Autoscale without the Draw — so a caller that coalesces frames does not paint one nobody sees. Resize and Autoscale are now written in terms of them and behave as before.

Tests: TestSetSizeDrawsNothingUntilDraw, TestResetViewDrawsNothingUntilDraw.

🤖 Generated with Claude Code

Live.SetSize and Live.ResetView are Resize and Autoscale without the
Draw, for a caller that coalesces its frames: a widget laid out and then
redrawn for another reason in the same turn, or linked charts released
only to be fitted to a common range straight after, would otherwise
paint a frame nobody sees.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@timzifer
timzifer merged commit f3a8df9 into main Sep 22, 2026
18 checks passed
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