code wiki / _hdl_build / nx_lockstep.nx

nx_lockstep.nx

buildroot/runtime/_hdl_build/nx_lockstep.nx

1486 B32 linesdepth 0pulls 0 transitivereach 5 importersview sourcekind library
docsdependenciesstructsconstsfunctions

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

nx_lockstep.nx nx_lockstep_exceed_gate.nx nx_lockstep_gate.nx nx_rollback.nx nx_rollback_exceed_gate.nx nx_rollback_gate.nx

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

8func ls_update(state: *i64, k: i64, input: i64) -> i64
20func ls_checksum(state: *i64, n: i64) -> i64
called by 4: ls_runmainmainmain
28func ls_run(state: *i64, k: i64, inputs: *i64, nticks: i64) -> i64
called by 2: mainmain calls 2: ls_updatels_checksum