Search Unity

CommandBuffer.DrawMesh much slower than CommandBuffer.DrawRenderer?

Discussion in 'General Graphics' started by CorruptScanline, Feb 20, 2017.

  1. CorruptScanline


    Mar 26, 2009
    I am changing some of my code from using CommandBuffer.DrawRenderer to use CommandBuffer.DrawMesh so I don't need Renderer components. I expected their performance to be about the same, but it seems that DrawMesh is actually about 2x slower than DrawRenderer. I have timed it using cached input values so it is not a matter of argument evaluation overhead, and I am using the overloads that most closely match eachother.

    Is this expected? It doesn't seem right that DrawMesh should be so much slower.

    This is in Unity 5.6.0b9
    AA-Matt likes this.