Search Unity

Frame Debugger: How can I group draw-calls?

Discussion in 'Editor & General Support' started by Peter77, Jul 6, 2019.

  1. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,609
    I want to group my own "Draw Mesh" calls, for example under a "My Mesh Draws" entry, to make it obvious from what system these draw-calls are coming.

    I tried to put Profiler.BeginSample / Profiler.EndSample calls around the code that calls Graphics.DrawMesh, as well as CustomSampler, but it doesn't cause those calls to get grouped together.

    Any idea how do do this?

    In this image there are three "Draw Mesh" calls, which are coming from my own. A specific system in my code. I want to group those together:
     
  2. Weichx

    Weichx

    Joined:
    Jul 10, 2018
    Posts:
    2
    If you are using a command buffer you can do with commandBuffer.BeginSample() / EndSample()