code wiki / _hdl_build / nx_lockstep.nx
nx_lockstep.nx
buildroot/runtime/_hdl_build/nx_lockstep.nx
about
nx_lockstep.nx -- N-R2: sovereign DETERMINISTIC LOCKSTEP core (P2 networking, the RTS netcode model).
Lockstep = every client runs the SAME deterministic simulation on the SAME inputs, so only inputs cross
the wire (tiny bandwidth) and all clients stay byte-identical. ls_update is a pure-integer deterministic
step; ls_checksum hashes world state so a DESYNC (any divergence) is detectable by comparing checksums.
Pure integer logic -> reproducible by construction. 100% sovereign. license_tier: ORIGINAL
dependencies 0 imports · 5 importers
imports: none
imported by: nx_lockstep_exceed_gate.nxnx_lockstep_gate.nxnx_rollback.nxnx_rollback_exceed_gate.nxnx_rollback_gate.nx
structs
| none |
consts
| none |
functions
| 8 | func ls_update(state: *i64, k: i64, input: i64) -> i64 |
| 20 | func ls_checksum(state: *i64, n: i64) -> i64 |
| 28 | func ls_run(state: *i64, k: i64, inputs: *i64, nticks: i64) -> i64 |