This commit is contained in:
Andri Yngvason 2023-01-21 07:47:16 +01:00 committed by GitHub
commit 789c570f7c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 107 additions and 6 deletions

View file

@ -21,6 +21,9 @@
// TODO: Refactor this shit
#define MAX_RENDER_TIME_OFF 0
#define MAX_RENDER_TIME_AUTO -2
/**
* Describes a variable created via the `set` command.
*/

View file

@ -57,6 +57,14 @@ struct sway_output {
uint32_t refresh_nsec;
int max_render_time; // In milliseconds
struct wl_event_source *repaint_timer;
struct timespec render_begin_time;
struct wlr_render_timestamp *render_end_ts;
int auto_max_render_time; // in milliseconds
// TODO: Make this adjustable:
uint8_t render_time_window[60];
int render_time_window_index;
};
struct sway_output_non_desktop {