2D Toolkit Forum

2D Toolkit => Support => Topic started by: camelot10 on July 26, 2012, 02:52:07 pm

Title: 2 Draw calls on 2 identical sprites
Post by: camelot10 on July 26, 2012, 02:52:07 pm
i dont know what im doind wrong. can someone point me how i can reduce draw calls ?
i use one atlas for same sprites.
its only 2 sprites in scene both from one atlas and its require 2 draw calls.
each new enabled element in scene increase draw call by 1.

archived project attached.

p.s. xp service pack 3, unity 3.5.4f3


Edit: unikron: removed attachment. Post in the private support are if you'd like to post source.
Title: Re: 2 Draw calls on 2 identical sprites
Post by: unikronsoftware on July 26, 2012, 03:01:23 pm
Had a look at the scene. Looks like Unity haven't implemented dynamic or static batching in the Flash player. They handn't when I looked at it back when it was released, but looks like they still haven't. Switching to any other platform will make this work properly, and as expected with 1 draw call.

Please file a bug report with Unity - they probably won't fix it unless enough people report it.