Remove threading options from UI since they will do nothing now
Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
3766f0bd42
commit
823ad6b53d
2 changed files with 0 additions and 22 deletions
|
|
@ -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();
|
||||||
|
|
|
||||||
|
|
@ -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…
Add table
Add a link
Reference in a new issue