mirror of
https://github.com/swaywm/sway.git
synced 2026-04-18 06:46:56 -04:00
output: implement max_render_time via wlr_frame_scheduler
This commit is contained in:
parent
4fa497f9d7
commit
2ae7af1844
3 changed files with 186 additions and 70 deletions
|
|
@ -66,10 +66,7 @@ struct sway_output {
|
|||
struct wlr_color_transform *color_transform;
|
||||
struct wlr_ext_workspace_group_handle_v1 *ext_workspace_group;
|
||||
|
||||
struct timespec last_presentation;
|
||||
uint32_t refresh_nsec;
|
||||
int max_render_time; // In milliseconds
|
||||
struct wl_event_source *repaint_timer;
|
||||
|
||||
bool allow_tearing;
|
||||
bool hdr;
|
||||
|
|
@ -117,6 +114,8 @@ void output_enable(struct sway_output *output);
|
|||
|
||||
void output_disable(struct sway_output *output);
|
||||
|
||||
void output_set_max_render_time(struct sway_output *output, int max_render_time);
|
||||
|
||||
struct sway_workspace *output_get_active_workspace(struct sway_output *output);
|
||||
|
||||
void output_for_each_workspace(struct sway_output *output,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue