Skip to content

measure_fps counts blit_rect flushes - #355

Merged
bdbarnett merged 1 commit into
mainfrom
fix/fps-count-blit-rect
Oct 30, 2026
Merged

bdbarnett merged 1 commit into
mainfrom
fix/fps-count-blit-rect

Conversation

@bdbarnett

Copy link
Copy Markdown
Contributor

On a partial-render panel (CircuitPython LCD-4.3) the meter wrapped only show and flush_rect, so it reported 0 flushes and 0 pixels while the GUI was redrawing through blit_rect. It now wraps blit_rect too. A blit_rect that calls flush_rect, or the reverse, is counted once. Frame counting is unchanged.

Tests in tests/test_displaydev_fps.py cover blit counts, the nested case and restoring the method when the meter is switched off.

A partial-render panel presents through blit_rect, so the meter read 0
flushes and 0 pixels while the GUI was redrawing. A blit_rect that calls
flush_rect (or the reverse) is counted once.
@bdbarnett
bdbarnett merged commit 9d927b6 into main Oct 30, 2026
9 checks passed
@bdbarnett
bdbarnett deleted the fix/fps-count-blit-rect branch October 30, 2026 11:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant