Add new frame scheduler interface
TODO:
-
an equivalent of this if necessary -
and of this - the condition is not checked anymore after these patches -
add a helper that can work off wl frame callbacks and headless frame events so that wl-without-presentation-time and headless can work again -
figure out what's happening to needs_frame (cc #3692). none of the examples handle it, but that was true before, which I guess means they were broken already? (edit: the non-scene examples never stop the rendering loop, so they don't need to handle it) -
examples: destroy the frame scheduler on output destruction -
examples: check that wlr_frame_scheduler_schedule_frame()
is being called when it should -
docs -
more (rigorous) testing
Sway patch: https://github.com/swaywm/sway/pull/7780
Edited by Simon Ser