fix: Fixes idleCPU override (#2308)
This commit is contained in:
parent
bc6735bd23
commit
89f620218d
2 changed files with 7 additions and 5 deletions
|
|
@ -455,14 +455,16 @@ public static class Core
|
|||
|
||||
public static void RunEventLoop()
|
||||
{
|
||||
try
|
||||
{
|
||||
#if DEBUG
|
||||
const bool idleCPU = true;
|
||||
const bool isDebugMode = true;
|
||||
#else
|
||||
var idleCPU = ServerConfiguration.GetOrUpdateSetting("core.enableIdleCPU", false);
|
||||
const bool isDebugMode = false;
|
||||
#endif
|
||||
|
||||
var idleCPU = ServerConfiguration.GetSetting("core.enableIdleCPU", isDebugMode);
|
||||
|
||||
try
|
||||
{
|
||||
var cycleCount = _cyclesPerSecond.Length;
|
||||
var last = _tickCount;
|
||||
const int interval = 100;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue