Displaying max frame time

This commit is contained in:
Vladyslav Baranovskyi
2024-06-14 11:41:20 +03:00
parent b5df2edab5
commit 1a51134fdd

View File

@@ -70,7 +70,7 @@ namespace OpenVulkano::Scene::UI
UpdateQueues();
assert(m_frames.m_values.size() == m_ramUsed.m_values.size());
ImGui::Text("Last Frame Time: %f s", m_frames.m_values.back());
ImGui::Text("Last Frame Time: %f s, max: %f s", m_frames.m_values.back(), m_frames.m_maxValue);
ImGui::Text("Last FPS: %f", 1 / m_frames.m_values.back());
ImGui::TextFmt("RAM: {} / {}, Free: {}", ByteSize(m_ramUsed.m_values.back()), ByteSize(SystemInfo::GetAppRamMax()), ByteSize(SystemInfo::GetAppRamAvailable()));
ImGui::SliderInt("Window Size", &m_windowSize, 10, 1000);