Browse Source

Remove threading options from UI since they will do nothing now

Signed-off-by: falkTX <falktx@falktx.com>
tags/22.02
falkTX 3 years ago
parent
commit
823ad6b53d
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
2 changed files with 0 additions and 22 deletions
  1. +0
    -5
      src/CardinalPlugin.cpp
  2. +0
    -17
      src/override/MenuBar.cpp

+ 0
- 5
src/CardinalPlugin.cpp View File

@@ -91,11 +91,6 @@ struct Initializer
#ifdef HEADLESS #ifdef HEADLESS
settings::headless = true; settings::headless = true;
#endif #endif
#ifdef __MOD_DEVICES__
settings::threadCount = 3;
#else
settings::threadCount = 0;
#endif
system::init(); system::init();
logger::init(); logger::init();


+ 0
- 17
src/override/MenuBar.cpp View File

@@ -598,23 +598,6 @@ struct EngineButton : MenuButton {
menu->addChild(createMenuItem("Performance meters", cpuMeterText, [=]() { menu->addChild(createMenuItem("Performance meters", cpuMeterText, [=]() {
settings::cpuMeter ^= true; settings::cpuMeter ^= true;
})); }));

menu->addChild(createSubmenuItem("Threads | DO NOT USE", string::f("%d", settings::threadCount), [=](ui::Menu* menu) {
// BUG This assumes SMT is enabled.
int cores = system::getLogicalCoreCount() / 2;

for (int i = 1; i <= 2 * cores; i++) {
std::string rightText;
if (i == cores)
rightText += "(most modules)";
else if (i == 1)
rightText += "(lowest CPU usage)";
menu->addChild(createCheckMenuItem(string::f("%d", i), rightText,
[=]() {return settings::threadCount == i;},
[=]() {settings::threadCount = i;}
));
}
}));
} }
}; };




Loading…
Cancel
Save