2D Toolkit Forum

2D Toolkit => Support => Topic started by: schragnasher on September 24, 2012, 01:22:55 am

Title: Massive number of draw calls for sprites from same atlas
Post by: schragnasher on September 24, 2012, 01:22:55 am
I am generating a fairly large number of asteroids for a game. All the asteroid images are in the same atlas, yet when rendering Unity reports a massive number of draw calls, if i disable all the asteroids it goes back to a reasonable level, so it seems than each asteroid is being rendered separately. Obviously this is an issue as i have 400 asteroids. Are there some things I can look for that i might have done incorrectly?
Title: Re: Massive number of draw calls for sprites from same atlas
Post by: schragnasher on September 24, 2012, 04:42:16 am
Disregard :) we had playmaker debug labels on...2 calls a label and 400 asteroids made Unity sad :)
Title: Re: Massive number of draw calls for sprites from same atlas
Post by: unikronsoftware on September 24, 2012, 08:09:06 am
Glad its sorted :)