Files
bananarchy/overlay/rootfs/usr/bin/tetris
T
Luxferre 52ac64e9b3 games: fix timing drift with cumulative nextTick, 30fps render, 90 pps base
Root cause of unstable speed: nextTick was reset to 'now + speed' each step,
accumulating timing drift. Now uses 'nextTick += speed' with a floor (if
nextTick < now, reset to now) to prevent drift and catch-up spirals.

- Both games: 30 fps render cap (FRAME_MS = 33 ms), nextTick updated
  cumulatively to eliminate drift.
- Snake: base speed 90 px/sec (~100 ms per step at cell=9), turn queue
  unchanged, edge wrap unchanged.
- Tetris: gravity step uses cumulative nextTick, controls unchanged.
2026-10-24 09:44:24 +03:00

17 KiB
Executable File