Jump to content
  • Advertisement
Sign in to follow this  
NiGoea

too much draw calls ?

This topic is 3155 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

hi all, a way to render a scene is to group triangles by material and perform a Draw Call for each material. But I suppose in a modern AAA game there are hundreds of materials => hundreds of draw calls Is this approach still used ? To speed up the rendering process, you can use texture atlas. Is this approach used nowadays ? If not, how do they manage to render hundreds of different materials ? thanks ;)

Share this post


Link to post
Share on other sites
Advertisement
"Hundreds" may or may not be "too many" draw calls. It depends on what hardware/API Version/OS you're targeting, and how much CPU time you're budgeting for your rendering. You should really profile with PerfHUD or PerfStudio and look at how much driver time you have. I would suspect that on a decent CPU a few hundred draw calls won't be a problem at all.

If you do need to reduce draw calls, a texture atlas is still a valid technique for D3D9. For D3D10 and above you have texture arrays, which are a much more elegant solution to the problem.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!