mirror of
https://github.com/swaywm/sway.git
synced 2026-04-21 06:46:22 -04:00
swaymsg: Display automatic max_render_time
This commit is contained in:
parent
f78bffa4ab
commit
aa2a2b8ce1
1 changed files with 8 additions and 1 deletions
|
|
@ -249,8 +249,15 @@ static void pretty_print_output(json_object *o) {
|
|||
);
|
||||
|
||||
int max_render_time_int = json_object_get_int(max_render_time);
|
||||
|
||||
printf(" Max render time: ");
|
||||
printf(max_render_time_int == 0 ? "off\n" : "%d ms\n", max_render_time_int);
|
||||
if (max_render_time_int == 0) {
|
||||
printf("off\n");
|
||||
} else if (max_render_time_int > 0) {
|
||||
printf("%d ms\n", max_render_time_int);
|
||||
} else {
|
||||
printf("%d ms (auto)\n", -max_render_time_int);
|
||||
}
|
||||
|
||||
printf(" Adaptive sync: %s\n",
|
||||
json_object_get_string(adaptive_sync_status));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue