Make the Vulkan GPU log profiler a runtime developer setting.

I keep forgetting to disable the define on commit, this is a better
solution.
This commit is contained in:
Henrik Rydgård committed 2021-12-19 22:50:14 +01:00
1 parent 748b8287a6
commit df2f0df155
10 files changed
+28 -18

No files matched your search

+3
View File
@@ -1774,6 +1774,9 @@ void DeveloperToolsScreen::CreateViews() {
list->Add(new CheckBox(&g_Config.bShowOnScreenMessages, dev->T("Show on-screen messages")));
list->Add(new CheckBox(&g_Config.bEnableLogging, dev->T("Enable Logging")))->OnClick.Handle(this, &DeveloperToolsScreen::OnLoggingChanged);
if (GetGPUBackend() == GPUBackend::VULKAN) {
list->Add(new CheckBox(&g_Config.bGpuLogProfiler, gr->T("GPU log profiler")));
}
list->Add(new CheckBox(&g_Config.bLogFrameDrops, dev->T("Log Dropped Frame Statistics")));
list->Add(new Choice(dev->T("Logging Channels")))->OnClick.Handle(this, &DeveloperToolsScreen::OnLogConfig);
list->Add(new ItemHeader(dev->T("Language")));