GothicVR icon indicating copy to clipboard operation
GothicVR copied to clipboard

Clone items via Object.Clone() instead of recreating it multiple times.

Open JaXt0r opened this issue 2 years ago • 0 comments

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.

JaXt0r avatar May 21 '23 11:05 JaXt0r