summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 5863ecc..a0be182 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -387,6 +387,17 @@ void RecordImGuiEditorWrapper() {
}
if (ImGui::BeginMenu("Debug")) {
ImGui::Checkbox("Show Debug Hitboxes", &pkeSettings.isRenderingDebug);
+ if (ImGui::Checkbox("Uncap Framerate", &pkeSettings.graphicsSettings.isFramerateUnlocked)) {
+ shouldRecreateSwapchain = true;
+ }
+ if (ImGui::Checkbox("wait for v-sync", &pkeSettings.graphicsSettings.isWaitingForVsync)) {
+ shouldRecreateSwapchain = true;
+ }
+ // ImGui::Checkbox("Uncap Tickrate", &pkeSettings.isTickrateUnlocked);
+
+ ImGuiIO &io = ImGui::GetIO();
+ ImGui::Text("Application average %.3f ms/frame (%.1f FPS)", 1000.0f / io.Framerate, io.Framerate);
+
ImGui::EndMenu();
}
ImGui::EndMainMenuBar();
@@ -622,8 +633,6 @@ 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");
}