2D Toolkit Forum

2D Toolkit => Support => Topic started by: Dajuice on November 23, 2012, 05:07:04 pm

Title: Sprite ID performance vs Animated Sprites?
Post by: Dajuice on November 23, 2012, 05:07:04 pm
Hello, I have a game that has several static sprites which change stance from time to time, nothing needing an actual timeline, they just switch between 2 static images when prompted to. Is it more optimized CPU and memry wise to just switch sprite ID in this case?
Title: Re: Sprite ID performance vs Animated Sprites?
Post by: unikronsoftware on November 23, 2012, 05:21:19 pm
Yes it will be much more efficient to set spriteId on a tk2dSprite as opposed to using animated sprites.
Title: Re: Sprite ID performance vs Animated Sprites?
Post by: Dajuice on November 23, 2012, 06:05:41 pm
Thanks for the quick reply!