Search Unity

Question Calculate time spent rendering with URP events?

Discussion in 'Universal Render Pipeline' started by KingKRoecks, May 31, 2023.

  1. KingKRoecks

    KingKRoecks

    Joined:
    Jul 28, 2013
    Posts:
    155
    I'm looking to hook into the render pipeline to figure out how long it's taking to render.

    Basically, I'm developing for Meta and they have strict requirements around framerate, and I'm hoping to have some realtime data about how long each of my systems are taking. Since rendering is a large aspect of that, I was hoping there was meaningful way to measure its contribution to the frametime through scripting.

    Does anyone know what events I could listen for to create timestamps for when rendering starts and stops?