From 405ef0baebf39800a6adf0c6a1aebd5f98071e3d Mon Sep 17 00:00:00 2001 From: Bram Verhulst Date: Wed, 12 Aug 2026 01:35:25 +0200 Subject: [PATCH] feat: make debug ui toggle-able --- destrum/include/destrum/App.h | 1 + destrum/src/App.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/destrum/include/destrum/App.h b/destrum/include/destrum/App.h index a6c0ef4..ff3c73a 100644 --- a/destrum/include/destrum/App.h +++ b/destrum/include/destrum/App.h @@ -23,6 +23,7 @@ public: std::string appName{"Destrum App"}; std::string windowTitle; std::filesystem::path exeDir; + bool showDebugUi{true}; }; App(); diff --git a/destrum/src/App.cpp b/destrum/src/App.cpp index d6d976d..e084695 100644 --- a/destrum/src/App.cpp +++ b/destrum/src/App.cpp @@ -192,6 +192,7 @@ void App::run() customUpdate(dt); } + if (m_params.showDebugUi) { ZoneScopedN("Debug ImGui"); SceneManager::GetInstance().RenderImgui();