Trying to get my game to run at 120 fps in Unity. Spine 4.2
Problem is that I get a lot of "Spikes" when instantiating new skeleton objects. It all mostly all from SkeletonRenderer.Awake function, even if I just spawn 1 to 3 skeleton within a frame it can take easily 8ms which is the entire frame budget. It also creates around 1MB of alloc per object.
My skeletons are relatively simples (less than 20 bones), and i dont think anims are overly complicated either. I don't create the bones hierarchy as gameobject, but i do use a few bone followers. And I use SkeletonMecanim.
I'm really not that much interested into going into gameobject pooling if possible, because of the risk for more bugs and complications it brings.
So I was wondering if there's any ways I can optimize that Awake function.
Maybe there's some settings on the Skeleton objects or when exporting the spine file, or something that could help. Thank you.