Decouple gameplay input from rendering and wait for world synchronization

This commit is contained in:
dingo
2026-09-09 06:48:04 -04:00
parent c52bdea026
commit 8f999c837e
5 changed files with 71 additions and 15 deletions
+5
View File
@@ -46,6 +46,11 @@ One Go process owns one world, with a serial simulation protected by one lock.
Clients submit bounded intents. The server determines speed, terrain height,
range, cooldown, inventory changes, damage, death, play-time, and passage eligibility.
Movement is interpolated on the client; full prediction/reconciliation is deferred.
Client movement and action intents run on a bounded 50ms timer, independent of
render frames. Elapsed time controls retries without replaying missed timer ticks;
hidden tabs and open menus clear movement/actions. Rendering alone clamps its
interpolation step. An open WebSocket shows "Synchronizing world" until a valid
world snapshot has been processed; reconnect clears the previous input snapshot.
No rigid-body physics is claimed: this is heightfield movement in open terrain.
Milestone 3 adds authoritative vertical jump velocity and gravity over that