I updated the Unity runtime in our project from:
Our performance was pretty slow using Spine before - We'd have maybe a drop to 50 fps in editor, with a few Spine objects in the scene. It'd be worse if they were bigger ones.
Right before I updated it, I was averaging 50 fps.
I then updated. I'm now averaging 150 fps. The game runs like 3 times better. It's consistent too. Tried a few times.
I've had a look through the history here:
I can't see anything specific about optimisations... I'd really like to understand what you did to make it work so much better?!?
Page 1 of 1
- Posts: 2
Harald will likely be along with some insights shortly, but I gotta say I was sweating until the part of your post that said the performance improved rather than declined!
- Posts: 9983
Same here!Nate wrote:but I gotta say I was sweating until the part of your post that said the performance improved rather than declined!
Are you using
SkeletonMecanim? There we fixed an admittedly stupid issue where the first clip was applied twice in some mix settings: [unity] SkeletonMecanim unnecessarily applies clip twice · #1648
Thanks goes to user RichardTrailmix who found this issue.
Nevertheless, this does not explain the 3x improvement to me yet, it would explain a 2x speedup.
There was also an improvement regarding
ToAtlasRegionPMAClone()methods, but I guess that is not relevant in your scenario.
We also changed some angle calculations which were previously performed using some lookup tables in the spine-unity runtime to direct sine/cosine calculations (which were intended as performance improvements back then):
Still, this change did not have any measurable effect on my PC, so I assume it also does not improve things dramatically on your end. Put differently, I'm happy that it did not get measurably worse .
These were the commits I found which would have an affect on performance. Apart from that, some Unity Editor scripting code has also been modified along the way, you might also see improvements from some cleanup that happened there.
SkeletonMecanimperformance should be much better now (2x would be
expected), if you are not usingSkeletonMecanim`, I cannot explain the 3x improvement, but I'm happy about it!
- Posts: 2091
Sorry, only just checked back - We're using the normal SkeletonAnimation rather than Mechanim hmmmm!
- Posts: 2
Mark topic unread • Page 1 of 1
Return to Unity