Repository navigation
Conversation
With Wayland frame callbacks as its clock, Firefox has to render, submit and commit each frame within one display frame of the last callback, or Labwc skips it until the next one. On the iPad 5 a 60 fps YouTube video showed 44 frames a second and dropped 16 that way, at 1080p and 720p alike, with the GPU and the CPU far from busy. With Firefox's own clock it renders whenever the next frame is due and Labwc shows the newest one: 57 frames a second, 3 dropped, for the same GPU and CPU time. Assisted-by: LLM
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.
Firefox takes its frame clock from Wayland frame callbacks by default. Each frame then has to be painted, rendered, submitted and committed within one display frame of the last callback, or the compositor shows nothing new and the next callback comes a frame later. On slower boards Firefox misses that window about one frame in four, though neither the GPU nor the CPU is busy.
This sets
widget.wayland.vsync.enabledto false in our Firefox defaults, for every session. Firefox then paces itself with its own 60 Hz clock and the compositor shows the newest frame each refresh. It is adefaultPref, so users can still change it.Measured on the iPad 5 (A9, Labwc), YouTube 1080p60 in a window, Firefox's own frame counters, two runs per arm:
The video decoder delivered all 60 frames per second in every run; 720p60 dropped the same 16 frames per second as 1080p60, so the loss is pacing, not decode or fill rate.
How to test
about:configshowswidget.wayland.vsync.enabled= false.LXb3EKWsInQ, 1080p60). Right-click → Stats for nerds: dropped frames should stay at a few percent instead of about a quarter.Assisted-by: LLM
🤖 Generated with Claude Code