Delta time(Δt)指“时间增量/时间步长”:相邻两次更新(如两帧之间、两次采样之间)所经过的时间长度。常用于游戏开发、动画、仿真与物理计算中,用来让运动与计算结果不受帧率波动影响(frame-rate independent)。
/ˈdɛltə taɪm/
The character moves based on delta time, so it runs at the same speed on different computers.
角色的移动会根据 delta time 计算,因此在不同电脑上速度也一致。
If you integrate acceleration each frame using the measured delta time, the simulation remains stable even when the frame rate drops.
如果你在每一帧用测得的 delta time 来积分加速度,那么即使帧率下降,模拟也能保持相对稳定。
delta 来自希腊字母 Δ(Delta),在数学与科学中常用来表示“变化量/差值”;time 表示“时间”。合起来 delta time 就是“时间的变化量”,常写作 Δt,在物理与数值计算里指一个很小的时间间隔。