fix: Fixes serialization threading, moves world save to end of loop, and eliminates Parallel.ForEach. (#1530)
This commit is contained in:
parent
e18115dd94
commit
1f0acddc46
12 changed files with 228 additions and 58 deletions
|
|
@ -81,8 +81,10 @@ public abstract class Persistence
|
|||
|
||||
internal static void SerializeAll()
|
||||
{
|
||||
// TODO: Hand off to a scheduler
|
||||
Parallel.ForEach(_registry, p => p.Serialize());
|
||||
foreach (var p in _registry)
|
||||
{
|
||||
p.Serialize();
|
||||
}
|
||||
}
|
||||
|
||||
internal static void PostSerializeAll()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue