wlroots/types
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
..
data_device Simplify globals implementation by removing destructors 2019-11-25 09:01:46 -05:00
seat seat: don't destroy global immediately 2020-02-17 20:52:37 +01:00
tablet_v2 Send tablet tool frame on proximity_out 2019-12-18 13:23:07 -05:00
xdg_shell xdg-shell: fix popups rendered outside of the screen 2020-02-26 13:43:53 +01:00
xdg_shell_v6 xdg-shell: fix popups rendered outside of the screen 2020-02-26 13:43:53 +01:00
meson.build keyboard-shortcuts-inhibit: Implement the protocol 2020-02-20 21:40:34 +01:00
wlr_box.c Fix output rotation direction 2020-02-17 21:43:05 +01:00
wlr_buffer.c buffer: improve error handling 2019-12-14 09:19:44 -05:00
wlr_compositor.c Simplify globals implementation by removing destructors 2019-11-25 09:01:46 -05:00
wlr_cursor.c Fix output rotation direction 2020-02-17 21:43:05 +01:00
wlr_data_control_v1.c Simplify globals implementation by removing destructors 2019-11-25 09:01:46 -05:00
wlr_export_dmabuf_v1.c Simplify globals implementation by removing destructors 2019-11-25 09:01:46 -05:00
wlr_foreign_toplevel_management_v1.c Simplify globals implementation by removing destructors 2019-11-25 09:01:46 -05:00
wlr_fullscreen_shell_v1.c Simplify globals implementation by removing destructors 2019-11-25 09:01:46 -05:00
wlr_gamma_control_v1.c Simplify globals implementation by removing destructors 2019-11-25 09:01:46 -05:00
wlr_gtk_primary_selection.c Simplify globals implementation by removing destructors 2019-11-25 09:01:46 -05:00
wlr_idle.c Simplify globals implementation by removing destructors 2019-11-25 09:01:46 -05:00
wlr_idle_inhibit_v1.c idle-inhibit: Style and naming improvements 2020-02-20 21:40:34 +01:00
wlr_input_device.c Remove all wayland-server.h includes 2019-07-27 15:49:32 -04:00
wlr_input_inhibitor.c Simplify globals implementation by removing destructors 2019-11-25 09:01:46 -05:00
wlr_input_method_v2.c Simplify globals implementation by removing destructors 2019-11-25 09:01:46 -05:00
wlr_keyboard.c keyboard: emit key events without keymap 2019-12-01 10:25:50 -05:00
wlr_keyboard_group.c keyboard-group: two NULL keymaps are equal 2020-01-17 12:23:14 -05:00
wlr_keyboard_shortcuts_inhibit_v1.c keyboard-shortcuts-inhibit: Implement the protocol 2020-02-20 21:40:34 +01:00
wlr_layer_shell_v1.c Simplify globals implementation by removing destructors 2019-11-25 09:01:46 -05:00
wlr_linux_dmabuf_v1.c Simplify globals implementation by removing destructors 2019-11-25 09:01:46 -05:00
wlr_list.c Revert "ELF Visibility" 2018-02-19 18:01:27 -05:00
wlr_matrix.c Fix output rotation direction 2020-02-17 21:43:05 +01:00
wlr_output.c output: remove wlr_output_impl.schedule_frame 2020-03-04 03:22:19 +01:00
wlr_output_damage.c Remove all wayland-server.h includes 2019-07-27 15:49:32 -04:00
wlr_output_layout.c Add -Wmissing-prototypes 2019-11-20 02:05:03 +00:00
wlr_output_management_v1.c output-management: add current_configuration_dirty 2020-02-19 11:40:23 +01:00
wlr_output_power_management_v1.c wlr_output_power_management_v1: Init output_power->link 2020-02-27 14:05:01 +01:00
wlr_pointer.c Remove all wayland-server.h includes 2019-07-27 15:49:32 -04:00
wlr_pointer_constraints_v1.c Simplify globals implementation by removing destructors 2019-11-25 09:01:46 -05:00
wlr_pointer_gestures_v1.c Simplify globals implementation by removing destructors 2019-11-25 09:01:46 -05:00
wlr_presentation_time.c Simplify globals implementation by removing destructors 2019-11-25 09:01:46 -05:00
wlr_primary_selection.c wlr_seat: Fix edge cases with serial validation 2019-06-30 15:01:05 -04:00
wlr_primary_selection_v1.c Simplify globals implementation by removing destructors 2019-11-25 09:01:46 -05:00
wlr_region.c Remove all wayland-server.h includes 2019-07-27 15:49:32 -04:00
wlr_relative_pointer_v1.c Simplify globals implementation by removing destructors 2019-11-25 09:01:46 -05:00
wlr_screencopy_v1.c Simplify globals implementation by removing destructors 2019-11-25 09:01:46 -05:00
wlr_server_decoration.c Simplify globals implementation by removing destructors 2019-11-25 09:01:46 -05:00
wlr_surface.c surface: don't unref the current buffer on failure 2019-12-14 09:19:44 -05:00
wlr_switch.c Remove all wayland-server.h includes 2019-07-27 15:49:32 -04:00
wlr_tablet_pad.c Move initialization of wlr_tablet_pad into types/wlr_tablet_pad 2019-09-26 19:41:19 +03:00
wlr_tablet_tool.c Remove all wayland-server.h includes 2019-07-27 15:49:32 -04:00
wlr_text_input_v3.c text_input_v3: Note features supported by the text field 2020-02-20 16:21:44 +01:00
wlr_touch.c Remove all wayland-server.h includes 2019-07-27 15:49:32 -04:00
wlr_virtual_keyboard_v1.c virtual_keyboard: Accept keycode 0 2019-11-27 16:49:12 +01:00
wlr_virtual_pointer_v1.c virtual-pointer: Add request for mapping to specific output 2020-02-10 21:01:38 +01:00
wlr_xcursor_manager.c Redesign wlr_texture 2018-03-24 23:48:32 -04:00
wlr_xdg_decoration_v1.c Simplify globals implementation by removing destructors 2019-11-25 09:01:46 -05:00
wlr_xdg_output_v1.c xdg-output-v1: use wlr_output.description 2019-12-29 12:35:22 -05:00