From 7e6b227b41c28a9fd8c7399ff8d1e1e03262cfc7 Mon Sep 17 00:00:00 2001 From: LunaMoo Date: Fri, 14 Sep 2018 01:34:39 +0200 Subject: [PATCH] Add an option to force number of worker threads. --- UI/GameSettingsScreen.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/UI/GameSettingsScreen.cpp b/UI/GameSettingsScreen.cpp index 6ddda7c59a3c..5cbe16026996 100644 --- a/UI/GameSettingsScreen.cpp +++ b/UI/GameSettingsScreen.cpp @@ -1381,6 +1381,8 @@ void OtherSettingsScreen::CreateViews() { list->SetSpacing(0); list->Add(new ItemHeader(sy->T("Settings that should not be changed by most users"))); + PopupSliderChoice *workerThreads = list->Add(new PopupSliderChoice(&g_Config.iNumWorkerThreads, 1, 128, gr->T("Manually set number of threads(important for software rendering and texture scaling)"), 1, screenManager(), gr->T("Threads"))); + workerThreads->SetFormat("Threads"); list->Add(new CheckBox(&g_Config.bEncryptSave, sy->T("Encrypt savedata"))); list->Add(new CheckBox(&g_Config.bSavedataUpgrade, sy->T("Allow savedata with wrong encryption(unsafe workaround for outdated PSP savedata)"))); list->Add(new CheckBox(&g_Config.bFrameSkipUnthrottle, gr->T("Frameskip unthrottle(good for CPU benchmark)")));