Skip to content

Default refresh_seconds 1.0 -> 0.2 - #11

Merged
info-arena merged 1 commit into
readme-minimalfrom
refresh-default
Sep 17, 2026
Merged

info-arena merged 1 commit into
readme-minimalfrom
refresh-default

Conversation

@davidquarel

Copy link
Copy Markdown
Collaborator

What

The default minimum time between redraws drops from 1.0 s to 0.2 s, the interval fastprogress uses for its live bars. Frames are drawn in the render process, so nothing changes on the training thread.

Measured

Same loop, logging every 2 ms for 6 s:

refresh_seconds first frame then a frame every frames in 6 s
1.0 (old) 0.80 s 1.06 s 6
0.2 (new) 0.60 s 0.31 s 19

Below 0.2 s the render time (~0.15 s per frame) is what limits the rate, so going lower mostly keeps the renderer busy. The first-frame delay is the render process starting (a fresh Python importing matplotlib), paid once per plot.

No demo GIF: this is a default, and the GIFs in the other PRs already record at short intervals.

Docs (module docstring, guide) updated. Full suite passes. Stacked on #10 because the guide page lives there.

🤖 Generated with Claude Code

https://claude.ai/code/session_01G9zs684RFxHvW6cNWqTPSF

A frame now appears every ~0.3 s during a busy loop instead of every
~1 s (render time sets the actual rate; measured 19 vs 6 frames in 6 s).
0.2 s is the interval fastprogress uses for its live bars. Frames are
drawn in the render process, so the training thread's cost is unchanged.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01G9zs684RFxHvW6cNWqTPSF
@info-arena
info-arena added this pull request to stack #13 September 17, 2026 18:52
@info-arena
info-arena merged commit 38c526e into readme-minimal Sep 17, 2026
3 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.

2 participants