Problem with TrueSyncManager Update

Hi,

Here is the code of TrueSyncManager::FixedUpdate:

void FixedUpdate() {
if (lockstep != null) {
tsDeltaTime += UnityEngine.Time.deltaTime;

if (tsDeltaTime >= (lockedTimeStep - JitterTimeFactor)) {
tsDeltaTime = 0;

instance.scheduler.UpdateAllCoroutines();
lockstep.Update();
}
}
}

Why tsDeltaTime is incremented by Time.deltaTime and not fixedDeltaTime? It seems a big error...

Thanks,

Devis

Comments

  • JeffersonHenrique
    JeffersonHenrique ✭✭✭
    edited December 2016
    Hello @Devis,

    Thanks for the report, but in this case there is no problems, because deltaTime returns the fixed value when it is called inside FixedUpdate. You can check here.