Search Unity

Feedback Add option to use smoothDeltaTime

Discussion in 'Cinemachine' started by vizgl, Oct 25, 2020.

  1. vizgl

    vizgl

    Joined:
    Nov 4, 2014
    Posts:
    61
    Please, add ability to use Time.smoothDeltaTime instead of Time.deltaTime to make camera movement more smooth. I have deltaTime spikes every few seconds and this get results in jittered camera movement. But, if I use smoothDeltaTime camera moves very smoothelly without jittering.
     
  2. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,730
    How are you testing this? Did you modify CM Brain?
     
  3. vizgl

    vizgl

    Joined:
    Nov 4, 2014
    Posts:
    61
    Yes, I have made copy of Cinemachine package to Assets and modify it
     
  4. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,730
    This is a good suggestion. We will look into the implications of adding this. Thank you for bringing this up.
     
  5. ipotonic

    ipotonic

    Joined:
    Mar 9, 2019
    Posts:
    7
    any updates on this?
     
  6. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,730
    This was not implemented, but there is another feature that makes it easy you you to do it yourself. Have a behaviour somewhere that calls Time.smoothDeltaTime in Update(), and pushes the value to CinemachineCore.CurrentTimeOverride. CM will then use that value instead of deltaTime.

    https://docs.unity3d.com/Packages/c...nemachine_CinemachineCore_CurrentTimeOverride
     
    ipotonic likes this.