wayland: optimize frame scheduling for 120Hz+ displays#822
Open
Gong-Mi wants to merge 1 commit into
Open
Conversation
- Use 0ms sync delay on Wayland (KMS page-flip already syncs) - Halve page-flip retry interval on EBUSY for faster recovery Fixes flickering on high-refresh-rate panels under Cinnamon Wayland. Tested on AMD Radeon 880M @ 2560x1600@120Hz.
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.
Problem
On Cinnamon Wayland with high refresh rate displays (120Hz+), window flickering occurs due to tight frame scheduling:
Environment
Changes
1. Wayland: remove fixed 2ms sync delay
File: +src/compositor/compositor.c+`
On Wayland the KMS page-flip event already provides synchronization. The 2ms delay is a legacy X11 artifact (for +GL_EXT_x11_sync_object+`) that hurts high-refresh-rate performance. X11 path is kept unchanged for compatibility.
2. Faster page-flip retry on EBUSY
File: +EBUSY+` without stalling a full frame.
Testing
Disable experimental feature to eliminate offscreen overhead:
++`
Apply patch and rebuild muffin.
Observe flickering significantly reduced or eliminated on 120Hz panel.
Related gaps (not addressed in this PR)