Search Unity

Getting the rendering time progromatically

Discussion in 'Unity Analytics' started by raghadalghonaim, Jun 5, 2020.

  1. raghadalghonaim

    raghadalghonaim

    Joined:
    Apr 22, 2020
    Posts:
    54
    Hello All,

    I'm interested in actually understanding how the HDRP additional parameters are costing me in term of time, I'm using Unity to only do 3D simulation. To explain it more, I'm running the program to loop through a specific number (say 10) to generate 10 different scenes (different in terms of object positions and materials and parameters values such as shadows) each time am capturing the scene using RenderTexture to PNG image.

    I'm interested in getting the exact render time of each of the 10 scenes, I want to understand for example how does enabling the shadows affect the rendering time?

    I tried using UnityStats.renderTime, but found no clear explanation on its functionality so wasn't sure about it.

    Thanks for your help
     
  2. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    Probably better asked here https://forum.unity.com/forums/scripting.12/ This forum is for Unity Analytics only
     
  3. raghadalghonaim

    raghadalghonaim

    Joined:
    Apr 22, 2020
    Posts:
    54
    Sure thanks!
     
  4. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446