Skip to content

v0.1.8: less jitter while turning

Choose a tag to compare

@goodshepherd23 goodshepherd23 released this 17 Nov 21:49
· 5 commits to main since this release

Less jitter while turning (follow-up to #2, thanks @Enio-Perceval).

The Saturn draws polygons with whole-pixel corners, and Baroque rounds every corner of every block on its own each frame. Neighbouring blocks therefore shake against each other by about a pixel, distant blocks most, and the seams between them open and close. It's in the original game, but higher internal resolutions and frame interpolation make it much easier to see.

While the camera turns, everything static on screen moves by one shared perspective mapping, and that mapping matches the game's corners to within the rounding. v0.1.8 works it out from the whole picture each game frame and moves every wall, floor and ceiling corner along a smooth sub-pixel path that stays within a pixel of the game's own corner (kit\patches\0007-turn-stabilisation.patch).

On a recorded turn, distant and mid-sized blocks shake against their neighbours about a third as much (median 0.8 px down to 0.25 px; 90th percentile 1.5 px down to 0.7 px, in Saturn pixels). Frame interpolation must be on (F1 > Motion, or F2).

Not changed yet: walking forward and standing still. Frames that can't be fitted confidently, for example when many new pieces come into view at once, behave exactly as in v0.1.7.

Updating: the first launch rebuilds the runtime once (a few minutes; your build tools are reused). Saves, cheats and settings are not touched.

Tested on Windows 11: the runtime's geometry tests pass, including a new one against an exact perspective projection; the stabilisation is active during turns in a build made by the kit's own setup; and interleaved runs at 3x showed no frame-time cost compared with v0.1.7.

Developed with AI assistance (Claude).