Optimization: FindHull spatial hashing, itemcomponent sounds in a dictionary, got rid of Item.Updated, rendering fixes, disposing shadow vertex buffers

This commit is contained in:
Regalis11
2015-12-21 11:01:35 +02:00
parent a62c6d6711
commit 2ff8643c02
16 changed files with 354 additions and 136 deletions
+2 -10
View File
@@ -111,7 +111,7 @@ namespace Barotrauma
get { return condition; }
set
{
if (float.IsNaN(value)) return;
if (!MathUtils.IsValid(value)) return;
float prev = condition;
condition = MathHelper.Clamp(value, 0.0f, 100.0f);
@@ -166,15 +166,7 @@ namespace Barotrauma
return IsInWater();
}
}
public bool Updated
{
set
{
foreach (ItemComponent ic in components) ic.Updated = value;
}
}
public ItemPrefab Prefab
{
get { return prefab; }