diff --git a/include/dusk/settings.h b/include/dusk/settings.h index 5345f4ddde..7724948fd5 100644 --- a/include/dusk/settings.h +++ b/include/dusk/settings.h @@ -75,6 +75,7 @@ struct UserSettings { ConfigVar isoPath; ConfigVar graphicsBackend; ConfigVar skipPreLaunchUI; + ConfigVar showPipelineCompilation; } backend; }; diff --git a/src/dusk/imgui/ImGuiConsole.cpp b/src/dusk/imgui/ImGuiConsole.cpp index 83ce09f35b..51d5db9c60 100644 --- a/src/dusk/imgui/ImGuiConsole.cpp +++ b/src/dusk/imgui/ImGuiConsole.cpp @@ -411,7 +411,7 @@ namespace dusk { void ImGuiConsole::ShowPipelineProgress() { const auto* stats = aurora_get_stats(); const u32 queuedPipelines = stats->queuedPipelines; - if (queuedPipelines == 0) { + if (queuedPipelines == 0 || !getSettings().backend.showPipelineCompilation) { return; } const u32 createdPipelines = stats->createdPipelines; diff --git a/src/dusk/imgui/ImGuiMenuGame.cpp b/src/dusk/imgui/ImGuiMenuGame.cpp index ff51cf5925..494dbe1c22 100644 --- a/src/dusk/imgui/ImGuiMenuGame.cpp +++ b/src/dusk/imgui/ImGuiMenuGame.cpp @@ -103,8 +103,9 @@ namespace dusk { ImGui::EndMenu(); } - if (ImGui::BeginMenu("Misc")) { + if (ImGui::BeginMenu("Interface")) { config::ImGuiCheckbox("Skip Pre-Launch UI", getSettings().backend.skipPreLaunchUI); + config::ImGuiCheckbox("Show Pipeline Compilation", getSettings().backend.showPipelineCompilation); ImGui::EndMenu(); } diff --git a/src/dusk/settings.cpp b/src/dusk/settings.cpp index cde814a867..a8a6c26522 100644 --- a/src/dusk/settings.cpp +++ b/src/dusk/settings.cpp @@ -62,7 +62,8 @@ UserSettings g_userSettings = { .backend = { .isoPath {"backend.isoPath", ""}, .graphicsBackend {"backend.graphicsBackend", "auto"}, - .skipPreLaunchUI {"backend.skipPreLaunchUI", false} + .skipPreLaunchUI {"backend.skipPreLaunchUI", false}, + .showPipelineCompilation{"backend.showPipelineCompilation", false} } }; @@ -113,6 +114,7 @@ void registerSettings() { Register(g_userSettings.backend.isoPath); Register(g_userSettings.backend.graphicsBackend); Register(g_userSettings.backend.skipPreLaunchUI); + Register(g_userSettings.backend.showPipelineCompilation); } // Transient settings