Search Unity

time.deltaTime rendering time of the engine or the headset?

Discussion in 'AR/VR (XR) Discussion' started by unitypracticeintern, Jul 17, 2018.

  1. unitypracticeintern

    unitypracticeintern

    Joined:
    Jul 4, 2018
    Posts:
    10
    Is time.deltaTime the rendering time of the last frame on the HMD or is it just the engine itself if those two times are different.
     
  2. JoeStrout

    JoeStrout

    Joined:
    Jan 14, 2011
    Posts:
    9,859
    It's neither. It's the total time since the last frame.
     
  3. unitypracticeintern

    unitypracticeintern

    Joined:
    Jul 4, 2018
    Posts:
    10
  4. JoeStrout

    JoeStrout

    Joined:
    Jan 14, 2011
    Posts:
    9,859
    No, it doesn't. It means the total time since the previous frame. If you added up Time.deltaTime for every frame, it should equal Time.time.