I am using Sparrow framework v2 in my ios project to display some complex animations.
I have added SPSparrowViewController's View as subview in my UIViewController in a particular bound.
Well I am able to run the animations(with was not working in uikit) but still is not that smooth. My animation uses a lot of images that I have now scaled down before loading to Sparrow. I found a link that provides some useful tips to improve the performance:
In this link I found that if sprites are flattened then they perform better but their state should not change. I am confused in using it in my scenario with stage hierarchy as below:
- Root Sprite
childrens: (a). Sprite(flattened) -> SPimage (background Image)
(b). Sprite -> SPrite (will be animated) ->
children: (x)Sprite (want to flatten)-> SPImage
(y)SPImage (this image will be animated)
I need to know if I flatten the sprite "x", will it do any good? or is it not recommended.
Hope I made it clear.