Repository navigation
v0.1.6: frame interpolation works in the dungeon
Frame interpolation now works in the dungeon (#2, thanks @Enio-Perceval). Baroque draws a new 3D picture every third display field, about 20 fps. Interpolation is meant to draw the frames in between, but in the dungeon it was repeating each game frame, which only made camera motion look blurrier.
Why: the interpolator paired only 1 of the ~108 polygons in a dungeon view between game frames.
- Baroque swaps its lighting tables between two copies every frame, which changed every polygon's colour-table address, and polygons were only paired when that address matched. They are now paired by shape and texture; the current frame's colours are still what gets drawn.
- The ceiling trim shares an edge with two wall panels. A safety check treated any edge shared by three polygons as suspect and froze the whole room. Distinct polygons on one edge are now allowed when their previous positions agree. Two identical stacked polygons are still held, as upstream intended.
The fix is kit\patches\0004-dungeon-interpolation.patch, with a new test case in the runtime's own geometry tests.
Turn it on with F1 > Motion > Frame interpolation, or press F2 in game. When a wall or object comes into or leaves view, that part of the picture holds still for one game frame rather than risk a torn seam.
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: all 108 dungeon polygons now pair between game frames; the in-between pictures move while walking (with the previous runtime they were identical) with no gaps or torn seams; pacing stays at a steady 8.33 ms per picture at 120 Hz, the same as before; and the kit's own setup applies all four patches and builds the optimized runtime.
Developed with AI assistance (Claude).