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
+17
View File
@@ -1,5 +1,22 @@
# Verification performed
## September 9 client regression checks
The initial timeout-only CI correction did not address render-dependent input or
the premature "Connected" status. The existing boss test now holds animation-frame
callbacks after targeting: it reproduced unchanged boss HP before the input-timer
fix and passes afterward against the real authoritative server. The existing
desktop reconnect test holds incoming server snapshots, checks the synchronizing
state, then releases them and requires the original character and all nine chunks.
Neither test substitutes client-calculated gameplay results.
Required TypeScript/build and Go checks pass locally. CI on its Linux software
renderer remains the deployment verification gate; local passing tests do not
establish its result. Routine new Playwright coverage remains deferred; these
changes extend the existing failing regressions.
## Original verification baseline
Local checks on Windows, 2026-09-05. Node 24.13.0, Go 1.27.1, Blender 4.3.2,
Helm 3.18.6, and headless Microsoft Edge driven by Playwright.