Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Delta Time consistency

Discussion in '2020.2 Beta' started by hippocoder, Apr 16, 2020.

  1. hippocoder

    hippocoder

    Digital Ape

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    Could you please explain the DX11 deltaTime consistency bullet point? What does it mean and also what of Vulkan + DX12 + Other?

    Thanks :)
     
    ROBYER1 and Peter77 like this.
  2. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,674
    It's a direct follow up to this problem: https://forum.unity.com/threads/time-deltatime-not-constant-vsync-camerafollow-and-jitter.430339/

    Now when you run the player on DX11, Time.deltaTime will tell you the actual amount of time a frame has been on the screen, rather than the time difference between two points in our C++ codebase that executes on the CPU when VSync is enabled. This makes Time.deltaTime to not fluctuate unless your frame rate is missing vblanks.

    The fixes for this for other platforms/graphics APIs are coming too. I just can't tell you when :).
     
    ROBYER1, Bastienre4, SugoiDev and 4 others like this.
  3. hippocoder

    hippocoder

    Digital Ape

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    Awesome, thanks!
     
  4. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,609
    Is this considered a new feature of bug-fix? I'm asking, because I'm wondering if it gets back-ported to 2018.4 LTS and 2019 LTS.
     
  5. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,674
  6. JoNax97

    JoNax97

    Joined:
    Feb 4, 2016
    Posts:
    611
    I read the thread above, but just to be sure: Does this address the issue explained in this blog? If so, in what capacity?
     
  7. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,674
    I can't say it addresses it 100%, but it gets us 80-99% there depending on circumstances. I encourage you to give it a shot and try it out :).
     
    Prodigga and JoNax97 like this.
  8. JoNax97

    JoNax97

    Joined:
    Feb 4, 2016
    Posts:
    611
    Oh boy this is awesome. I've just finished reading the patch notes and the amount of fixes is huge. I will surely try the alpha as soon as I can.
    Thanks a lot!
     
  9. rz_0lento

    rz_0lento

    Joined:
    Oct 8, 2013
    Posts:
    2,361
    I'll just add a note here from that other thread that this feat hasn't landed on a7 yet. It should be on a8 whenever we get it though.
     
    Peter77 likes this.
  10. Enzi

    Enzi

    Joined:
    Jan 28, 2013
    Posts:
    962
    A8 is out. Have you done any testing yet?
     
  11. hippocoder

    hippocoder

    Digital Ape

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    In the other thread, linked above, he posted charts. It doesn't matter if he did though, you want to do your own testing. Your situation isn't his.