This commit is contained in:
Reece Wilson 2023-08-26 21:11:27 +01:00
parent 3e5aa1aff0
commit a41a27198e
2 changed files with 26 additions and 25 deletions

View File

@ -373,6 +373,7 @@ namespace Aurora
AuUInt64 uAdaptiveSpinCUCnt8 : 4 { 3 };
AuUInt64 uAdaptiveSpinCUCnt16 : 4 { 4 };
AuUInt64 bPreferFutexRWLock : 1 { true };
AuUInt64 bWinXpThrough7BlazeOptimizerPower : 7 { 12 }; // dont worry about it. we dont care about old portables. lets try to make older win32 targets tweak the scheduling in our favor a bit.
};
struct DummyConfig

View File

@ -216,7 +216,7 @@ namespace Aurora
if (gRuntimeConfig.threadingConfig.bEnableAgrSchedulingRatelimit)
{
if (!((uCounter++) & 128))
if (!((uCounter++) & (1ull << (gRuntimeConfig.threadingConfig.bWinXpThrough7BlazeOptimizerPower + 5ull))))
{
return;
}