I use asynchronous loading for spine datas. ( json, atlas, png ).
But when first time creating spine, it still cause lag in SkeletonRenderer LateUpdate().
One for about 250ms delay, 10 for 2.5 seconds delay.
Code snippets:
var obj = new GameObject();
var animation = obj.AddComponent<SkeletonAnimation>();
animation.skeletonDataAsset = asset;
// ... something else
// Big lag: Call SkeletonRenderer LateUpdate()
animation.Reset();
Unity Version: 4.6.0f3
I have found that someone with the same question in this post:
http://esotericsoftware.com/forum/Unity-SkeletonRenderer-rebuilds-everything-each-frame-4466?p=21465&hilit=lateupdate#p21465
This problem has bothering me several months, is there a good solution yet? :think: :think: :think:
Thank you!