Physics & constraints · 4 / 10

Fixed Timestep / Substepping

決まった刻みで物理更新を進める。

Compare in motion

不規則な描画間隔

Synchronized comparison
AReference
描画ごとに同じ距離だけ進む

描画ごとに同じ距離だけ進む

BFixed Timestep / Substepping100%
描画の揺れに物理の刻みを左右されにくくできる

描画の揺れに物理の刻みを左右されにくくできる

Loading demo…

Scrub to pause and inspect. At 0%, B matches A; at 100%, B shows the effect. The scene repeats every 8 seconds.

Look for: 物理を一定刻みで進める → 更新間隔は揃う。

This model simplifies the technique to show its use case and effect. Operation counts describe the model; they are not performance measurements.

Read the storyboard

例: 不規則な描画間隔

  1. 1. Start

    描画フレームが揺れる

  2. 2. Change

    物理を一定刻みで進める

  3. 3. Result

    更新間隔は揃う

描画の揺れに物理の刻みを左右されにくくできる。時間変化を示す模式図です。実際の描画結果や処理速度を再現したものではありません。

How it works

  1. 1. Input

    描画フレームの時間差

  2. 2. Process

    一定幅の小刻みに分割

  3. 3. Result

    安定した更新間隔

A schematic of Fixed Timestep / Substepping. It shows the relationship between input, process, and result; exact values and rendering depend on the implementation.

Further reading

Gaffer On Games — Integration Basics ↗

A general reference for this subcategory.