Optimizations.

Removed use of ConcurrentDictionary. It was slow.
Other minor optimizations around the codebase.
Added option for parallel game state generation. Seems slower than doing it single-threaded so off by default for now.
This commit is contained in:
Pieter-Jan Briers
2020-02-15 17:22:32 +01:00
parent 115795c38e
commit 44c7ff552e
7 changed files with 157 additions and 73 deletions

View File

@@ -163,9 +163,12 @@ namespace Robust.Shared.ContentPack
public void BroadcastUpdate(ModUpdateLevel level, FrameEventArgs frameEventArgs)
{
foreach (var entrypoint in _mods.SelectMany(m => m.EntryPoints))
foreach (var module in _mods)
{
entrypoint.Update(level, frameEventArgs);
foreach (var entryPoint in module.EntryPoints)
{
entryPoint.Update(level, frameEventArgs);
}
}
}