Jump to content
Search Community

Stuttering of animation due to CPU intensive operation

Jack test
Moderator Tag

Recommended Posts

My animation (a rotating loading indicator) occasionally stalls as my app is processing some code. Is there a way to avoid this? Is there a way to make the animation run on the GPU rather than the CPU? Any ideas are welcomed!

 

thanks,

Jack

 

Below is the code that I run. The displayObject "_spCenter" is a circular loading indicator:



private function rotate():void {
  if(_tween == null || !_tween.active){
  _tween = new TweenLite(_spCenter, .6, {rotation: 355, ease: Linear.easeInOut, onComplete:rotate});
  }
}

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...