This commit is contained in:
vis2k 2021-09-16 14:12:02 +08:00
parent c4cc416385
commit cf02df3a72

View File

@ -124,9 +124,7 @@ public void ClearAllDirtyBits()
syncVarDirtyBits = 0L;
// flush all unsynchronized changes in syncobjects
// note: don't use List.ForEach here, this is a hot path
// List.ForEach: 432b/frame
// for: 231b/frame
// (Linq allocates, use for instead)
for (int i = 0; i < syncObjects.Count; ++i)
{
syncObjects[i].Flush();