fix: Adds idle cpu config and forces on in debug (#790)
* Adds `core.enableIdleCPU` to modernuo.json * Forces idle CPU on in DEBUG * Reverts idle detection back to CPS
This commit is contained in:
parent
b6641c4853
commit
56c348ac68
7 changed files with 52 additions and 80 deletions
|
|
@ -3249,10 +3249,8 @@ namespace Server
|
|||
m_DeltaFlags &= ~flags;
|
||||
}
|
||||
|
||||
public static int ProcessDeltaQueue()
|
||||
public static void ProcessDeltaQueue()
|
||||
{
|
||||
int count = 0;
|
||||
|
||||
var limit = m_DeltaQueue.Count;
|
||||
|
||||
while (m_DeltaQueue.Count > 0 && --limit >= 0)
|
||||
|
|
@ -3264,8 +3262,6 @@ namespace Server
|
|||
continue;
|
||||
}
|
||||
|
||||
count++;
|
||||
|
||||
item.SetFlag(ImplFlag.InQueue, false);
|
||||
|
||||
try
|
||||
|
|
@ -3286,8 +3282,6 @@ namespace Server
|
|||
Console.WriteLine("Warning: {0} items left in delta queue after processing.", m_DeltaQueue.Count);
|
||||
Utility.PopColor();
|
||||
}
|
||||
|
||||
return count;
|
||||
}
|
||||
|
||||
public virtual void OnDelete()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue