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

@ -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));