From f5917baf1f3f7f1766ae3730727f83f7a708439c Mon Sep 17 00:00:00 2001 From: Jonathan Bradley Date: Mon, 16 Oct 2023 10:55:17 -0400 Subject: add fps to ImGui - placeholder location --- src/game.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/game.cpp b/src/game.cpp index 50c7199..5863ecc 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -622,6 +622,8 @@ void RecordImGuiSceneEditor() { ImGui::End(); return; } + ImGuiIO &io = ImGui::GetIO(); + ImGui::Text("Application average %.3f ms/frame (%.1f FPS)", 1000.0f / io.Framerate, io.Framerate); if (ImGui::Button("Create Entity Type")) { ImGui::OpenPopup("CreateEntityType"); } -- cgit v1.2.3