Sorry for the forum spam xD
I'm using the asset manager to load and retrieve all of my textures. In my tests, I'm using two textures, a 'platform' and an 'egg'. My games base class for assets is 'GameObject' which extends Starling's Sprite class. Then each individual object extends this GameObject class (i.e both the platform and egg).
If I ONLY add platforms to the stage, I get a single drawcall, no matter how many I add. If I start randomly adding both platforms and eggs, I get a drawcall for each GameObject. For example if I had 10 platforms and 5 eggs, that would be 15 drawcalls however if I only add 10 platforms and NO eggs (and vice versa), it reports a single drawcall.
I find it odd because both the egg and platform use the exact same code to retrieve the texture for its 'Image' and add it to the stage.
Not sure if this is relevant but my platforms and eggs get added at the same time during an update function called by an enterFrame function.
How does Starling work in this respect, what do I need to do to get this down to a single call per texture?