Files
orca/config/scripts
Jinwoo Hong 5e25c7a0b1 test(frame-budget): raster the noise before the sweep measures a frame (#22048)
The sweep's capture waited two animation frames after painting the noise
and then measured the next screencast frame. That is a main-thread
commit, not a raster: the screencast hands over whatever the compositor
has drawn so far, so after a resize it emits frames at the full size
carrying only the tiles rastered yet.

Measured under CPU starvation at 1400x1600, 87 of 444 post-commit frames
read under the noise floor, one of them 447491 bytes where the full
frame is 1221117. A frame that short posts inside the 640 KiB cap, which
is what failed "the shell drops what will not fit" with `expected 596462
to be null` on a lead gate.

`Page.captureScreenshot` returns only once a compositor frame of the
current content exists, so it is the raster the measurement needs. It is
ordered on the same CDP session, so every frame counted after it is one
the compositor had finished. Over the same rounds with it, none read
under the floor.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb
2026-09-21 14:21:18 -04:00
..
2026-05-15 05:44:25 -04:00