mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-26 23:55:40 +00:00
SDL: Include frame times in status bar
This commit is contained in:
parent
13c3426148
commit
fe364d5e8b
|
@ -690,6 +690,12 @@ void SDLHostInterface::DrawMainMenuBar()
|
|||
|
||||
if (!m_paused)
|
||||
{
|
||||
ImGui::SetCursorPosX(ImGui::GetIO().DisplaySize.x - (420.0f * framebuffer_scale));
|
||||
ImGui::Text("Average: %.2fms", m_system->GetAverageFrameTime());
|
||||
|
||||
ImGui::SetCursorPosX(ImGui::GetIO().DisplaySize.x - (310.0f * framebuffer_scale));
|
||||
ImGui::Text("Worst: %.2fms", m_system->GetWorstFrameTime());
|
||||
|
||||
ImGui::SetCursorPosX(ImGui::GetIO().DisplaySize.x - (210.0f * framebuffer_scale));
|
||||
|
||||
const float speed = m_system->GetEmulationSpeed();
|
||||
|
|
Loading…
Reference in a new issue