SDL: Include frame times in status bar

This commit is contained in:
Connor McLaughlin 2020-05-29 22:24:50 +10:00
parent 13c3426148
commit fe364d5e8b
1 changed files with 6 additions and 0 deletions

View File

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