2D Toolkit Forum

2D Toolkit => Support => Topic started by: arvz on February 12, 2014, 11:45:58 am

Title: Static Sprite Batcher actually decreasing Saved By Batching count?
Post by: arvz on February 12, 2014, 11:45:58 am
Hey,

I'm trying to use the Static Sprite Batcher to combine many many blocks into 1 big statically batched block, like this:

(http://i.imgur.com/n71ezgl.png)
(I'm not using a Tilemap for a specific reason)

I've got a bunch of these in different shapes, all using the same 1 sprite which is in a sprite collection.

While I have all of them uncommitted the 'saved by batching' count in the statistics box is about 88. When I start committing the static sprite batch blocks this number starts go down instead of going up.

I would have logically expected the number to go up (The more you save the better, no?) Have I screwed something up or do I just understand this incorrectly?

edit: Oops, actually it looks like while the 'saved by batching' count goes down, the draw calls count also goes down drastically, so it appears to be working as it should?

Thanks
Title: Re: Static Sprite Batcher actually decreasing Saved By Batching count?
Post by: unikronsoftware on February 12, 2014, 12:24:46 pm
Yup, thats working as it should.