wlroots/include/wlr
Simon Ser 348f52b5fc output: remove wlr_output_impl.schedule_frame
This function allowed backends to provide a custom function for frame
scheduling. Before resuming the rendering loop, the DRM and Wayland
backends would wait for vsync.

There isn't a clear benefit of doing this. The only upside is that we
get more stable timings: the delay between two repaints doesn't change too
much and is close to a mutliple of the refresh rate.

However this introduces latency, especially when a client misses a
frame. For instance a fullscreen game missing vblank will need to wait
more than a whole frame before being able to display new content. This
worst case scenario happens as follows:

- Client is still rendering its frame and cannot submit it in time
- Deadline is reached
- Compositor decides to stop the rendering loop since nothing changed on
  screen
- Client finally manages to render its frame, submits it
- Compositor calls wlr_output_schedule_frame
- DRM backend waits for next vblank
- The wlr_output frame event is fired, compositor draws new content on screen
- On the second next vblank, the new content reaches the screen

With this patch, the wlr_output frame event is fired immediately when
the client submits its late frame.

This change also makes it easier to support variable refresh rate, since
VRR is all about being able to present too-late frames earlier.

References: https://github.com/swaywm/wlroots/issues/1925
2020-03-04 03:22:19 +01:00
..
backend Drop RDP backend 2020-01-10 19:38:39 +01:00
interfaces output: remove wlr_output_impl.schedule_frame 2020-03-04 03:22:19 +01:00
render render: unconditionally disable implicit X11 includes 2020-01-24 21:33:12 +00:00
types keyboard-shortcuts-inhibit: Implement the protocol 2020-02-20 21:40:34 +01:00
util meson: Various improvements 2019-12-23 07:48:29 -05:00
backend.h Remove all wayland-server.h includes 2019-07-27 15:49:32 -04:00
config.h.in Drop RDP backend 2020-01-10 19:38:39 +01:00
meson.build build: replace version with soversion 2020-01-24 11:17:03 +01:00
version.h.in Revert "Revert "Merge pull request #1194 from ascent12/meson_feature"" 2018-08-24 19:35:02 +12:00
xcursor.h Initial pass on API stability guarantees 2018-07-29 19:20:34 -04:00
xwayland.h xwayland: Expose configure request mask 2019-10-08 19:46:06 +03:00