Item/statuseffect optimization:
- PowerTransfer components cache power connections instead of rechecking them every frame - items store connections in a dictionary with the name of the connection as a key (-> finding the correct connection when sending a signal is more efficient) - storing item tags & StatusEffect targetNames in HashSets
This commit is contained in:
@@ -374,7 +374,7 @@ namespace Barotrauma.Items.Components
|
||||
return;
|
||||
}
|
||||
|
||||
List<ItemSound> matchingSounds = null;
|
||||
List<ItemSound> matchingSounds;
|
||||
if (!sounds.TryGetValue(type, out matchingSounds)) return;
|
||||
|
||||
ItemSound itemSound = null;
|
||||
|
||||
Reference in New Issue
Block a user