mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-18 00:29:58 -04:00
Leave the shader preparation modes on every processor the process was given.
The large-cache die's placement is for the game's own threads. --prepare-shaders and --warm-shaders translate and build on as many processors as they find, so on a two-die processor the placement would have halved them. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
@@ -547,7 +547,13 @@ int main(int argc, char **argv) {
|
||||
// Timed guest waits (kernel.c block_inner) sleep in whole milliseconds; at the default 15.6 ms tick a 1 ms wait
|
||||
// costs a full tick. NX2NAVI_TIMER_1MS=0 keeps the default for comparison.
|
||||
if (cfg_bool("NX2NAVI_TIMER_1MS")) plat_timer_1ms();
|
||||
perf_cpu_start(); // before any thread pool counts the usable processors
|
||||
// Before any thread pool counts the usable processors. Not in the shader preparation modes: they translate and
|
||||
// build on every processor the process was given, and the placement (perf.c cpu_placement) is for the game's own
|
||||
// threads, so narrowing them to one die would only make the preparation take longer.
|
||||
int prepare = 0;
|
||||
for (int i = 1; i < argc; i++)
|
||||
if (!strcmp(argv[i], "--prepare-shaders") || !strcmp(argv[i], "--warm-shaders")) prepare = 1;
|
||||
if (!prepare) perf_cpu_start();
|
||||
{ // NX2NAVI_POWER_FULL=0 leaves Windows' power throttling of an unfocused window in place (A/B runs)
|
||||
const char *pf = cfg_get("NX2NAVI_POWER_FULL");
|
||||
if (!(pf && !strcmp(pf, "0"))) {
|
||||
|
||||
Reference in New Issue
Block a user