vulkan/overlay: don't display frame numbers unless required
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3972 Reviewed-by: Tapani Pälli <tapani.palli@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8080>
This commit is contained in:
parent
a2fb87eea6
commit
af9481cb89
|
@ -933,7 +933,8 @@ static void compute_swapchain_display(struct swapchain_data *data)
|
|||
const char *format_name = vk_Format_to_str(data->format);
|
||||
format_name = format_name ? (format_name + strlen("VK_FORMAT_")) : "unknown";
|
||||
ImGui::Text("Swapchain format: %s", format_name);
|
||||
ImGui::Text("Frames: %" PRIu64, data->n_frames);
|
||||
if (instance_data->params.enabled[OVERLAY_PARAM_ENABLED_frame])
|
||||
ImGui::Text("Frames: %" PRIu64, data->n_frames);
|
||||
if (instance_data->params.enabled[OVERLAY_PARAM_ENABLED_fps])
|
||||
ImGui::Text("FPS: %.2f" , data->fps);
|
||||
|
||||
|
|
Loading…
Reference in New Issue