Repository navigation
fix(browser): an agent's input runs the tab at 240 fps, so its mouse moves stop waiting for a 60 fps frame - #815
Merged
Merged
Conversation
…moves stop waiting for a 60 fps frame Blink handles a mouse move at the next frame, and an off-screen tab's frames come at its windowless_frame_rate (60). Each of a drag's twelve moves waited up to 16.7 ms: 216 ms on blade, where official's window at the display's rate took 97 ms. While an agent's Input.* calls arrive the tab now runs at 240 fps, and returns to 60 one second after the last one. ENGINE_REVISION 20.
|
PR test build retired — merged into |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
An agent's mouse moves waited for the off-screen tab's next frame. Blink handles a mouse move at the next frame, and an off-screen tab's frames come at its
windowless_frame_rate(60): each ofbrowser.drag's twelve moves waited up to 16.7 ms. Official's window runs at the display's rate.While an agent's
Input.*calls arrive, the tab now runs at 240 fps; one second after the last one it returns to 60. A person's own browsing never runs at the higher rate.apps/browser-engine/src/input_fps.rs(new):booston an agent input call,relaxfrom the engine loop'spoll_frames.cdp_ledger.rs: boosts when an agent'sInput.*call passes its checks.clipboard_gate.rs: the pane rate asPANE_FPS.ENGINE_REVISION19 -> 20;scripts/guardrails/engine-inputs.txtrefreshed (engine-revision: ok, 84 inputs).Measured
44-operation suite on blade, hidden desktop, published
dev-475app, the engine built from the same tree with and without this change (both unoptimizeddevbuilds), medians:dragfillchecksnapshotclickEvery other operation within noise.
Not proved in this PR