Starling optimization tips


show more Starling optimization tips provides you with in-depth training on Developer. Taught by Lee Brimelow as part of the Building Flash Games with Starling show less
please wait ...

Starling optimization tips

So now I want to take a couple of minutes and just go over a couple of optimizations that we can do to our game, and also just in general how you might want to optimize Starling content. So first of all Starling has blend modes associated with it on display objects, so if you have, let's say, a background image that doesn't have any alpha in it, you don't need to worry about that, you can set your blendMode to none, and you will get some performance increase from doing that. So in our background class where I have these two image objects, what I'm going to do is first set sky1, I'm going to set its blendmode = and get a constant out of the Starling.display.BlendMode class, and we are simply going to set it to BlendMode.NONE.

And I'm going to do that also for sky2, and that's just a little thing but will give you some performance increase because again we don't need to worry about blend modes on those background images. Now another area which we can optimize...

Starling optimization tips
Video duration: 4m 8s 2h 57m Intermediate

Viewers:

Starling optimization tips provides you with in-depth training on Developer. Taught by Lee Brimelow as part of the Building Flash Games with Starling

please wait ...