🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

How to batch draw calls

Started by
2 comments, last by PolarWolf 1 year, 8 months ago

I have hear that batching draw calls is a commonly used technique to optimize mobile games,like unity,but as far as I know,for one draw call,the draw buffer must be continuous,so does it mean we have to move draw data around to make them lay continuously in one buffer,that will be a great overhead,am I right

Advertisement

‘Batching draw calls’ could just mean to sort objects by materials, so you still have draw call per object, but you change shaders less frequently.
The next step is to use a texture atlas or texture arrays, so you change textures less often as well.
Only after that merging geometry as you say becomes next, which is no overhead if you do it as an offline pre-process, e.g. for static geometry.

You made it very clear,thanks a lot.

This topic is closed to new replies.

Advertisement