fix(pipewire): revert back to compositor-side pacing - #5538
Draft
psyke83 wants to merge 1 commit into
Draft
Conversation
KWin 5.x/6.x has poor frame pacing when not using variable rate capture for screencasting, but KWin 6.7 also breaks desktop animation pacing when variable rate capture (0/1) is negotiated. The upcoming KWin 6.8 improves pacing for non-variable rate capture, so switch back to capture using a negotiated target maxFramerate, thus fixing desktop animation pacing. This change also avoids first-time negotiation failure for mutter, but we can retain the _negotiatiate_maxframerate fallback to negotiate the target fps only via SPA_FORMAT_VIDEO_framerate, just in case there are other compositors that don't handle maxFramerate negotiation robustly.
Contributor
Author
|
Technically I'm happy with the change as-is, but I'm keeping it in draft as it's a quasi-breaking change until Plasma 6.8 releases in October, or if the related fix for improved pacing gets backported to older branches. Summary of effects:
If anyone is interested in testing the improved pacing, it's trivial to manually backport the single commit to KWin 6.7. |
|
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.



Description
KWin 5.x/6.x has poor frame pacing when not using variable rate capture for screencasting, but KWin 6.7 also breaks desktop animation pacing - which runs at half speed - when variable rate capture (0/1) is negotiated.
The upcoming KWin 6.8 improves pacing for non-variable rate capture, so if we switch back to capture using a negotiated target maxFramerate, we can also fix desktop animation pacing.
This change also avoids first-time negotiation failure for mutter, but we can retain the negotiate_maxframerate_ fallback to negotiate the target fps only via SPA_FORMAT_VIDEO_framerate, just in case there are other compositors that don't handle maxFramerate negotiation robustly.
Screenshot
Issues Fixed or Closed
Roadmap Issues
Type of Change
Checklist
AI Usage
See our AI usage policy.