Draw calls - is there a way to know how many draw calls happen per frame?

I am wondering if we have anyway to know how many draw calls happened during a single frame , this can help debug/optimize a game without having to guess where the bottlenecks are, so far I haven’t been able to find a way to know this yet. Any ideas?

GraphicsDevice.Metrics.DrawCount

Put it after your drawing code but before your debug draw

2 Likes

Thanks! this is really helpful! not sure why I never saw this one before.