mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-09-06 17:58:05 +02:00
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:
co-authored by
Metal Gear Sloth
parent
23c0984d2e
commit
00fbefa4e5
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user