Physics caching go brrt (#1307)

* Physics caching go brrt

* Minor optimisation

Co-authored-by: Metal Gear Sloth <metalgearsloth@gmail.com>
This commit is contained in:
metalgearsloth
2020-10-09 11:40:02 +02:00
committed by GitHub
co-authored by Metal Gear Sloth
parent 23c0984d2e
commit 00fbefa4e5
8 changed files with 277 additions and 94 deletions
@@ -11,11 +11,7 @@ namespace Robust.Server.GameObjects.EntitySystems
/// <inheritdoc />
public override void Update(float frameTime)
{
var collidableComponents = EntityManager.ComponentManager
.EntityQuery<ICollidableComponent>()
.ToList();
SimulateWorld(frameTime, collidableComponents, false);
SimulateWorld(frameTime, false);
}
}
}