Working on server side stuff

This commit is contained in:
Vladislav Khorev committed 2026-11-17 15:28:21 +06:00
1 parent a784da9fb4
commit 542fc191fa
12 files changed
+757 -64

No files matched your search

+8
View File
@@ -426,6 +426,14 @@ Protocol v2 uses server-sequenced deterministic lockstep:
- Post-tick canonical hashes exclude persistence timestamps and local
presentation state. A mismatch is diagnosed but not automatically repaired.
Within one tick the server keeps only each player's last order (destination,
`set_target`, or `clear_attack_target`); `applyScheduledCommand()` defines their
semantics identically on the server and replicas. A stalled client freezes and
then fast-forwards through all buffered contiguous ticks; any lost connection
(including a clean close or rejection) returns the client to the main menu, and
the server broadcasts a disable command for the departed player's character. See
`WEBSOCKET_NETWORKING.md` for details.
No wall-clock timestamp participates in simulation. `steady_clock` paces the
server and local render accumulator only, so different machine clocks do not
affect command placement or state. The current missing-packet policy is to stall;