GothicVR
GothicVR copied to clipboard
Clone items via Object.Clone() instead of recreating it multiple times.
This will help e.g. multiple berries being created faster than loading and creating from scratch multiple times. (At least it leverages Unity's internal logic which shouldn't be slower than custom creating via phoenix/C#.)
It's no special magic. More like a "cache" to load from phoenix, create it once, cache GameObject reference, and .Clone() it once needed.
Hint: Performance would be improved during level loading, but not at runtime.