mirror of
https://github.com/swaywm/sway.git
synced 2026-04-22 06:46:27 -04:00
Merge ff14df6db3 into a7b9f6fedc
This commit is contained in:
commit
789c570f7c
8 changed files with 107 additions and 6 deletions
|
|
@ -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.
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue