Submarines, items and characters that reach a depth of 300,000 units (~4000 m) are automatically disabled. Avoids the unnecessary cost of updating entities that are way too deep to be reached by anyone.
This commit is contained in:
@@ -14,8 +14,12 @@ namespace Barotrauma
|
||||
{
|
||||
partial class Level
|
||||
{
|
||||
public const float ShaftHeight = 1000.0f;
|
||||
//all entities are disabled after they reach this depth
|
||||
public const float MaxEntityDepth = -300000.0f;
|
||||
public const float MaxCameraDepth = -290000.0f;
|
||||
|
||||
public const float ShaftHeight = 1000.0f;
|
||||
|
||||
public static Level Loaded
|
||||
{
|
||||
get { return loaded; }
|
||||
|
||||
Reference in New Issue
Block a user