Decouple gameplay input from rendering and wait for world synchronization
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user