diff options
| author | Jonathan Bradley <jcb@pikum.xyz> | 2023-10-16 10:55:17 -0400 |
|---|---|---|
| committer | Jonathan Bradley <jcb@pikum.xyz> | 2023-10-16 10:55:17 -0400 |
| commit | f5917baf1f3f7f1766ae3730727f83f7a708439c (patch) | |
| tree | 5dff227036f3d1e4d00d0b12a2d025491d95d769 | |
| parent | 76f2069b78fe369a3eba03a16218d352e3e51b53 (diff) | |
add fps to ImGui - placeholder location
| -rw-r--r-- | src/game.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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"); } |
