Skip to content
This repository has been archived by the owner on Nov 1, 2021. It is now read-only.

output: make wlr_output_schedule_frame set output->needs_frame #2053

Merged
merged 2 commits into from
Mar 6, 2020

Conversation

emersion
Copy link
Member

@emersion emersion commented Mar 5, 2020

This way, wlr_output_schedule_frame will always be followed by a
wlr_output_commit. This forces the compositor to render an extra
frame before stopping the rendering loop.

To test, run wleird's frame-callback 1, make sure it's the only
visible client on the output and check the interval between frame
events is the output's refresh period instead of zero.

Closes: #2051

This way, wlr_output_schedule_frame will always be followed by a
wlr_output_commit. This forces the compositor to render an extra
frame before stopping the rendering loop.

To test, run wleird's frame-callback [1], make sure it's the only
visible client on the output and check the interval between frame
events is the output's refresh period instead of zero.

[1]: https://github.com/emersion/wleird/blob/master/frame-callback.c

Closes: swaywm#2051
emersion added a commit to emersion/sway that referenced this pull request Mar 5, 2020
wlr_output_schedule_frame now sets output->needs_frame [1], so this
isn't needed anymore.

[1]: swaywm/wlroots#2053
@ddevault ddevault merged commit 7bce056 into swaywm:master Mar 6, 2020
@ddevault
Copy link
Contributor

ddevault commented Mar 6, 2020

Thanks!

ddevault pushed a commit to swaywm/sway that referenced this pull request Mar 6, 2020
wlr_output_schedule_frame now sets output->needs_frame [1], so this
isn't needed anymore.

[1]: swaywm/wlroots#2053
@emersion emersion deleted the fix-output-schedule-frame branch March 12, 2020 12:41
emersion added a commit to emersion/wlroots that referenced this pull request Mar 12, 2020
Add a comment to not forget why this call is necessary.

References: swaywm#2053
ddevault pushed a commit that referenced this pull request Mar 12, 2020
Add a comment to not forget why this call is necessary.

References: #2053
filips pushed a commit to filips/wlroots that referenced this pull request Mar 15, 2020
Add a comment to not forget why this call is necessary.

References: swaywm#2053
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Busy loop with clients requesting frame callbacks without rendering
2 participants