mirror of
https://github.com/swaywm/sway.git
synced 2026-04-18 06:46:56 -04:00
output: Add support for max_render_time auto
When set to auto, sway will use the new predictive frame scheduler.
This commit is contained in:
parent
2ae7af1844
commit
856e4f108b
4 changed files with 17 additions and 18 deletions
|
|
@ -19,6 +19,8 @@ struct sway_output_state {
|
|||
struct sway_workspace *active_workspace;
|
||||
};
|
||||
|
||||
#define MAX_RENDER_TIME_AUTO -2
|
||||
|
||||
struct sway_output {
|
||||
struct sway_node node;
|
||||
|
||||
|
|
@ -66,7 +68,7 @@ struct sway_output {
|
|||
struct wlr_color_transform *color_transform;
|
||||
struct wlr_ext_workspace_group_handle_v1 *ext_workspace_group;
|
||||
|
||||
int max_render_time; // In milliseconds
|
||||
int max_render_time;
|
||||
|
||||
bool allow_tearing;
|
||||
bool hdr;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue