Skip to content

155 design a deterministic fixed point simulation

Alex Diakovsky edited this page Dec 1, 2026 · 28 revisions

155. Design: a deterministic, fixed-point simulation (the netplay prerequisite)

Question: netplay (#43, plan Phase 5) is "deferred until the simulation is complete and provably deterministic". Phase 6 adds that the determinism test has to pass on every platform, the web build included. How far is the port from that today, and what is the staged path to an integer fixed-point simulation, the one PORTING_PLAN.md section 2.1 asks for?

Tracking issue: #133. This is a design document, not a trace. The decision (strict fixed-point, not "floats plus testing") is the user's, 2026-11-17. What is traced, and must stay exact, are the original's own fixed-point numbers: positions and speeds in 16.16 units (document 45), headings as 22-bit angles with 0x1000000 per turn, and its own trig helpers (FUN_00410be0 cosine, FUN_00410dc0 sine, FUN_00410b80 atan2, FUN_00410df0 length).

The deterministic simulation series: this document is the plan; document 156 is stage S0, the harness, and what it found; document 157 is stage S1, one fixed tick; document 158 is stage S2, the sim's own random numbers. Each later stage gets its own document when it lands, in the computer-player series' style (answer up front, glossary, the port code quoted with a Translation, diagrams, tests, where the code is).

Glossary

Term Meaning
simulation (sim) Everything that decides what happens: movement, collision, damage, fuel, ammo, timers, soldiers, turrets, drones, flags, the win. Not drawing, sound, camera or HUD.
deterministic The same starting state plus the same inputs gives the same state, bit for bit, every time, on every machine.
lockstep Netplay where peers send each other only their input words and every peer runs the whole sim itself. It only works if the sim is deterministic.
desync Two peers' sims disagreeing. In lockstep, one differing bit eventually snowballs into a different game.
tick One step of the sim. The original's is 16 ms (timeGetTime() >> 4), 62.5 per second.
fixed-point, Q16.16 A number stored as an integer counting 1/65536ths: 0x10000 is 1.0, 0x10ccc is 1.05. Integer maths on it gives the same bits on every CPU and in the browser.
state hash One number computed from the whole sim state after a tick. Two runs agree exactly when their hashes agree tick after tick.
sim RNG / fx RNG Two separate random streams: the sim's, seeded identically on every peer, and a cosmetic one for smoke and sound picks, which can differ per peer.
view A Godot node that draws a piece of sim state (the *_view_3d.gd files). It reads the sim; it never changes it.

The answer, up front

  1. Today the sim is not deterministic, and not fixed-point. Gameplay state is float, positions are Godot Vector2 (32-bit floats), objects step on the frame's delta, randomness comes from Godot's unseeded global randi(), a few timers read the wall clock, and two sim objects (Vehicle, Projectile) are scene nodes. The details are in the next section.
  2. The good news: every player, human or computer, already drives through one input word per tick (InputWord, document 138, 143). That is exactly what lockstep sends over the wire. Soldiers, turrets and drones are already plain RefCounted objects with separate views. And the original's numbers are already traced as 16.16 hex values, so the conversion is a return to the original's own representation, not a redesign.
  3. Eight stages, each landing on its own with all existing checks green:
    • S0 a determinism harness (state hash per tick from a seed and an input log) plus a "float lint";
    • S1 one fixed tick, no delta, no wall clock;
    • S2 the sim RNG split from the fx RNG;
    • S3 the fixed-point toolkit (Fx), with the original's trig traced and reproduced;
    • S4 sim state taken out of the scene nodes;
    • S5 the entities converted to fixed-point one by one;
    • S6 the determinism check in CI on Windows, Linux and the web build;
    • S7 a separate test game with no copyrighted assets, designed and shipped with the modding tools alone, so netplay can be tested and its builds handed out without distributing Return Fire's content (added 2026-11-19).
  4. The computer players do not have to be converted for netplay. A computer player is a controller: in a networked game one peer runs it and sends its input words like a person's. The AI only has to read the converted sim state.
  5. Done means: the harness's hashes agree across two processes, two operating systems and a browser for a long recorded match, the lint reports no float in the sim, every existing check still passes, and the S7 test game exists. Then Phase 5 (transport interface, lockstep) starts.

Where the port is today

A survey of the engine's game/ folder at engine 5d9c7fc:

Problem Where Why it breaks determinism
Floats for gameplay state vehicle.gd (heading_deg, speed, hp, fuel, cooldowns), match_controller.gd, projectile.gd, drone.gd, turret.gd, soldier.gd, debris_piece.gd, wreck.gd, edge_guard.gd, gate.gd, the vehicle modules Rounding differs with the order of operations and between compilers and the browser. Section 2.1 forbids it.
Positions in Vector2 Vehicle and Projectile extend Node2D and use position; the rest use Vector2 fields Vector2 is 32-bit float in standard Godot builds, coarser still than a GDScript float.
Library trig cos, sin, atan2, sqrt, deg_to_rad in vehicle.gd, projectile.gd, drone.gd, turret.gd, rocket_salvo.gd, ... Not guaranteed bit-identical across platforms. The original computed these on the x87 FPU and truncated each result to an integer (document 159); the port reproduces those integers with integer arithmetic only.
Variable timestep MatchController._process(delta) and Vehicle._process(delta); ticks := delta * Vehicle.TICK_HZ in about a dozen places A frame of 16.6 ms on one peer and 16.7 ms on another gives different results.
Wall clock in the sim Time.get_ticks_msec() in match_controller.gd, vehicle.gd, ai/nav_grid.gd Different on every machine.
Unseeded global RNG randi() / randf_range() in match_controller.gd (spawn lanes, scatters, sounds), soldier.gd (grenades, headings, decisions), projectile.gd (smoke), turret.gd, debris_piece.gd, target_pool.gd, ai/ai_gunner.gd, ai/ai_strategy.gd, vehicle_modules/rotor_drive.gd Different on every peer from the first roll. Gameplay and cosmetic rolls share one stream, so even drawing a smoke puff shifts the next gameplay roll.
Update order Vehicle._process runs in scene-tree order, separately from MatchController._process The order is not part of the sim's state, so it can differ.

The sim today (frame-driven, float, nodes) and the target (one fixed integer tick, plain objects, views reading it)

Mermaid source
flowchart TB
  subgraph today["Today"]
    direction TB
    F1["frame (variable delta)"] --> MC1["MatchController._process"]
    F1 --> V1["Vehicle._process (tree order)"]
    MC1 --> S1["float state, Vector2 positions"]
    V1 --> S1
    R1["global randi(), wall clock"] --> S1
    S1 --> D1["drawing reads the same nodes"]
  end
  subgraph target["Target"]
    direction TB
    F2["frame"] --> A2["tick accumulator"]
    W2["input words"] --> ST2["Sim.step(): fixed order, ints"]
    A2 --> ST2
    R2["sim RNG (seeded)"] --> ST2
    ST2 --> S2["plain objects, Q16.16"]
    S2 --> H2["state hash"]
    S2 --> D2["views: float for drawing only"]
    X2["fx RNG"] --> D2
  end
  today ~~~ target
Loading

The stages

The eight stages and what each needs first

Mermaid source
flowchart TB
  S0["S0 harness + float lint"] --> S1["S1 one fixed tick"]
  S0 --> S2["S2 sim RNG / fx RNG"]
  S0 --> S3["S3 Fx toolkit + traced trig"]
  S1 --> S4["S4 sim state out of the nodes"]
  S2 --> S5["S5 convert entities to fixed-point"]
  S3 --> S5
  S4 --> S5
  S5 --> S6["S6 cross-platform check in CI"]
  S6 --> P5["Phase 5: transport, lockstep"]
  S7["S7 a copyright-free test game,<br/>made with the mod tools"] --> P5
Loading

S0. The determinism harness and the float lint

Everything after this is measured by it, so it comes first, and it is expected to fail today.

  • SimHash: one 64-bit hash of the sim state after a tick: every vehicle, projectile, soldier, turret, drone, wreck, gate, flag, mine and tile hit point, each player slot's stock, fuel, ammo and timers, and the sim RNG's state. Objects are visited in a fixed order (by id), never in dictionary or scene-tree order. While the state is still float, the hash takes the float's raw bits, so it catches the smallest difference.
  • Input logs: a match's starting point (level, sides, vehicles, skill, seed) plus every player's input word for every tick, written to a small file. A person's game, a computer player's game or a scripted one all record the same way.
  • The check (an engine test on the synthetic pack, so it needs no game data): run a recorded match twice in one process, then twice in two processes, and compare the per-tick hashes. On a mismatch it prints the first differing tick and which object differed. A computer-vs-computer match is the cheap long recording.
  • The float lint: a check that scans the sim files for float, Vector2, Vector3, randf, randi(, sin(, cos(, atan2, sqrt, Time.get_ticks and delta, with an allow-list of today's hits. A new hit fails the check; each stage shrinks the list; S6 needs it empty. This keeps converted code converted.

S1. One fixed tick

  • The match keeps a tick accumulator: each frame adds the frame's time and runs Sim.step() once per whole 16 ms tick that has passed. The sim never sees delta.
  • Sim.step() runs every sim update in one fixed, written-down order. Vehicle no longer runs its own _process for gameplay.
  • Every delta * TICK_HZ becomes an integer tick count: cooldowns, refuel, death and respawn timers, rearm, the gate bars, the edge guard. Timers that read Time.get_ticks_msec() count ticks instead.
  • The original's movement is direction * speed * dt with dt a whole number of ticks (document 45); at full speed dt is 1. The port fixes it at 1 and runs more steps when it falls behind, which is also what lockstep needs.
  • Drawing between ticks can show the last tick (as the original does) or interpolate in the view; either is a view choice that never touches the sim.

S2. The sim RNG and the fx RNG

  • Every randi() call site is classified as gameplay (spawn lanes, soldier grenades and headings, decision timers, turret and drone choices, target picks) or cosmetic (smoke puffs, debris spin, which of three throw sounds plays).
  • Gameplay rolls go through one CrtRand owned by the match, seeded from the match seed (later sent in the netplay handshake). Where the trace shows the original calling its FUN_0041d3d0 (below(n)), the port calls CrtRand.below(n), which also brings these rolls closer to the original.
  • Cosmetic rolls use a second stream that the hash ignores and views may use freely.
  • The order of gameplay rolls is fixed by S1's update order, so the two peers roll the same numbers for the same things.

S3. The fixed-point toolkit (Fx) and the traced trig

A small engine class of static integer helpers, written once and unit-tested hard:

  • Q16.16 arithmetic: Fx.ONE = 0x10000, mul(a, b) = (a * b) >> 16 with the original's rounding (arithmetic shift, rounding toward minus infinity, checked against RFIRE.BIN's imul/shrd sequences), div, from_int, to_float (for views only). GDScript's int is 64-bit, so a 16.16 times a 16.16 fits without overflow.
  • Never / on ints in the sim. GDScript's / truncates toward zero; the original's shifts round toward minus infinity. Explicit helpers say which one is meant.
  • Angles as the original's: 0x1000000 per turn, the direction step angle >> 18 (64 steps of 5.625 degrees).
  • Trig, traced, not approximated: Fx.cos, Fx.sin, Fx.atan2, Fx.isqrt and Fx.sqrt reproduce FUN_00410be0, FUN_00410dc0, FUN_00410b80, FUN_00410df0 and FUN_00410e20.
    • Corrected by the trace (document 159): this plan assumed the original used trig tables, which the importer would extract into the pack. It has none: it computes on the x87 FPU and truncates with _ftol.
    • So nothing goes into the pack. The engine holds two exact tables of pure mathematics, generated by tools/gen_fx_tables.py, and gives the original's integers with integer arithmetic only.
  • Vectors without allocation: sim objects keep x and y as two ints rather than a Vector2i wrapper per operation.
  • Tests: helpers against hand-worked values and against the traced functions' outputs for a sweep of inputs.

S4. Sim state out of the scene nodes

Section 2.1 says the sim must not live in Godot's engine types. Soldiers, turrets and drones already follow that (a RefCounted object plus a *_view_3d node). S4 does the same for the two exceptions:

  • Vehicle becomes a plain sim object (position, heading, speed, hit points, fuel, ammo, modules); a VehicleView node draws it and owns the engine sound, the shadow and the render descriptor.
  • Projectile the same, with its billboard as the view.
  • MatchController keeps its role as the sim's world but stops depending on being a Node for anything the sim decides. A later step can split it into Sim (pure) and MatchController (the node that runs it, feeds input words and builds views).

This is a pure restructuring with no change in behaviour: the existing checks and the S0 hash of a single-process run (which still matches itself) show nothing moved.

  • Done (document 160): Mine and FlagMarker were converted too, so no sim object is a scene node. The existing views (VehicleRender3D, ProjectileBillboard3D, MineView3D, FlagMarker3D) already did the drawing; no new VehicleView was needed. A vehicle in a match now always rolls the match's dice, not only when the match's world is in the scene tree.

S5. Converting the entities to fixed-point

One entity at a time, each its own commit and its own document, in this order (each one's dependencies come first):

  1. Vehicle movement: position, heading, speed, accel, friction, turn (document 45's 16.16 numbers become the constants themselves: 0x10ccc rather than 1.05 * TICK_HZ).
  2. Projectiles: straight shells, the lob (projectile.gd's sqrt(3276 * D / 46340) becomes the original's integer form) and the vertical missile.
  3. Collision: tiles, vehicles, the shell sweep (_shell_hits_*).
  4. Damage, hit points, fuel, ammo, rearm and refuel.
  5. Soldiers, turrets, drones, the edge guard, gates, mines, flags.
  6. Wrecks and gameplay debris (debris that only looks nice moves to the views and the fx RNG).

For each one:

  • the pack values it reads become raw integers as the original stores them (a pack-format change: the importer and build_pack.py change together, the dev pack is rebuilt, and other sessions are told to re-import);

  • the views convert to float for drawing;

  • the existing behaviour checks pass unchanged, and a golden test records a short scripted run's per-tick positions before and after the conversion. Any difference is investigated against the trace: a difference may be the float version being the wrong one.

  • Vehicle movement, ground drive done (document 161): the vehicle holds pos_fx, heading_fx and speed_fx, with position, heading_deg and speed as float views. The drive moves along the original's 64-step direction table, not the exact heading. The pack-format change was not needed: the pack's drive numbers are already exact multiples of 1/65536.

  • The Heli's flight done (document 162): the spin, the velocity, the hover drift and the bank are integers, stepped as FUN_0040e0e0 steps them. S5.1 is done; the height z stays float until the height code is converted.

  • Projectiles done (document 163): S5.2. Shots fly on the original's integers and rotation tables (straight, pitched, lobbed and homing). Found on the way: shots fly on whole heading steps, only a shot launched with a pitch and a rate turns its pitch (so the Heli's level-button bomb flies level), and the Heli's toe-in is 2 steps (document 63 corrected).

  • Collision done (document 164): S5.3. Vehicles against tiles and vehicles, and shots against both, are tested on the original's integers, in its cell order. Found on the way: only the mover's mask is read, a shot is a point in height, the segment test works in whole units, a polygon's coarse box is never turned, and a shot meets a vehicle only where it lands (documents 53 and 54 corrected). Shots now hit the depot and turret zones.

  • Damage, fuel and ammunition done (document 165): S5.4. Hit points, armour, damage and fuel are the original's 16.16 integers. Found on the way: the fuel burn drops its fraction (|speed| x dt >> 5), the low-fuel warning repeats every 121 ticks, refuelling dings while the tank fills, rearming dings only while a slot fills, and a positive explosion-box damage is not a rate.

  • Mines, gates, the flag and the edge guard done (document 166): S5.5a, the first half of S5.5. The four objects step on 16.16 and their collision uses the integer test. Found on the way: a gate blocked on its first closing step plays GateMove every tick, a dropped flag's heading is 0 at once, a waving flag counter at 10 or more counts down, and the edge guard surfaces 0x20 raw units off its target. S5.5b is the turrets, soldiers and drones.

  • The gun turrets done (document 167): S5.5b. S5.5's remaining objects are split one per stage: S5.5b the turrets, S5.5c the soldiers, S5.5d the Drones. The turret's bearing is exact (not a whole step), its distance is whole units, its return turns the heading home before the gun, and its shot leaves at the gun's exact angles. The tracer walks the integer shot test, and every hit of its move counts.

  • The foot soldiers done (document 168): S5.5c. The soldier walks along the exact bearing, walks out of a tile 4 units at a time, and rolls the throw's scatter dice even at 0. Its "walk away from home" behaviour is unreachable in the original and is gone. rand(n) is the original's 32-bit product, which makes a building's soldiers all start on one row (an original bug, kept). Shells meet soldiers inside the integer shot test.

  • The Drones done (document 169): S5.5d, and with it S5.5. The Drone flies on the original's integers and its records outlive it: the next Drone of a side starts with the last one's gun pitch, gun and shot timer. Found on the way: four pack constants were rounded wrongly (0x3d7 and 0x4ccc, so full speed comes on the sixth tick), a refused spawn point tries the next lane, the bank is scaled by a whole square root, and the aim uses the exact bearing. Shells meet a Drone's body inside the integer shot test.

  • Wrecks and debris done (document 170): S5.6, and with it S5. The wreck moves on the original's integers through the move test, and it is a solid object: it blocks vehicles, soldiers, gates and Drones, stops shells (12.0 hit points), and a tile it slides into takes 34. A shot-out hulk keeps its body, the behaviour ends one tick later than the port had it, and the crewman steps out exactly. The flying pieces meet nothing, so they left the simulation.

  • The height and water done (document 171): S6.1. The vehicle's height is 16.16 and the water class is the traced shape test. The water handler runs at the end of the tick, after the move, so wading and sinking start on the tick the vehicle gets there. A move that turned into something is retried on the old heading and, if the vehicle is clear where it stands, it stops with its speed kept instead of bouncing. The Heli's climb is part of its move, and the dock and the pad end on the original's exact ticks.

  • The Heli's take-off and landing done (document 172): S6.2. Start-up stage 3 is a take-off with no control: the Heli drifts east and spins as it rises, its tilt from two tables by height. The Heli's buttons run after its move like every vehicle's. The landing is the Heli's own handlers, started by its dock test: a brake to a standstill, a descent in whole units of height to the pad's centre and heading step 24 with the buttons live, the rotor stepped round to angle 0, then the gear stage. One port choice: the take-off's turn direction uses the game tick's parity, not the object's pool slot.

  • The weapons, gun mount and cooldowns done (document 173): S6.3. A slot fires once its ready tick is past and waits its cooldown, so shots come cooldown + 1 ticks apart. The turret and gun turn by 0x4ccc on raw angles; the gun steps once on the press tick and a shot waits (pending) until it is exactly level or raised. Muzzles use the exact pitch matrix and the heading's whole step. The MSV's level rockets pitch 0x4f5c and it reloads 41 ticks; the Heli's down gun pitches 0x71c71. The Tank and MSV roll off the pad 15 ticks with no buttons, and the Jeep waits 99 busy ticks (a pack-format change).

  • The explosion damage boxes done (document 174): S6.4a. The box runs its record's script on integer progress (first step 0x10000), so a mine's box lives 145 ticks, and is tested per cell of the original's cell walk with the type-2 chain test: tiles, gates, vehicles, soldiers, wrecks and Drones from one pass.

  • The road assist done (document 175): S6.4b. The Jeep's road-following target is a raw angle from the lateral offset, in open heading windows, and the turn is FUN_004319e0's. Headings differ by at most 2 raw units from the float version.

  • The dock test and the rest of the match controller done (document 176): S6.4c. The dock compares the whole-unit offset from the cell's centre and skips the weapons on the pad; the loss sequence is whole ticks and 16.16 fades; the hangar scripts honour each step's continue flag; the compass takes the exact bearing; the radar sector is the bearing from the vehicle, 0 = north; the pad's lift scans 3x3 cells. match_controller.gd has no lint hits left.

  • The view code fenced off done (document 177): S6.4d. The controls are -1/0/1 integers, a shot's launch reads only integer keys, tuning defaults are spelled raw, the handicap's ammunition share is a whole percent, the water tile is integer floor division; everything else that was float is a view, in #region view (or ai, load). The float lint's allow-list is empty.

  • The determinism check in CI done (document 178): S6.5, and with it S6. The engine's determinism.yml records a match on Linux and replays its input log on Linux, on Windows and in a web export in headless Chromium; every platform's 1500 per-tick hashes agree with the recording's, on every push.

The computer players are not on this list. They only produce input words. In netplay one peer runs each computer player and sends its words, so the AI can keep floats internally. It must only read sim state through the converted accessors, and use the fx RNG or its own seeded stream for its aim error and timing.

S6. The check on every platform, in CI

S6 is split into sub-stages, each taking one area's last floats out of the simulation files: S6.1 the vehicle's height and water (document 171); S6.2 the Heli's take-off and automatic landing (document 172); S6.3 the weapons, gun mount and cooldowns (document 173); S6.4 the rest, in four parts: S6.4a the explosion damage boxes (document 174), S6.4b the road assist (document 175), S6.4c the dock test and the rest of the match controller (document 176), S6.4d the view code fenced off from the lint (document 177); S6.5 the CI runs below (document 178).

  • The S0 check joins a CI workflow that already knows how to install Godot and the export templates (.github/workflows/release.yml does it for releases). It runs on Linux and Windows runners, plus a web export run in a headless browser, comparing every platform's per-tick hashes for the same recordings.
  • The float lint's allow-list is empty.
  • Update (document 188, 2026-12-01): netplay is rollback from the start, with lockstep as a rollback window of 0; the host sets the input delay and the window per match. The test game is openfire-nettest, web first.
  • Then, with S7 done, Phase 5 starts: the transport interface (section 2.5.4), lockstep with input delay, and the pack id + version in the handshake (#16). The per-tick hash also becomes netplay's desync detector: peers swap hashes every few ticks and stop at the first mismatch.

S7. A test game with no copyrighted assets, made with the modding tools

Added 2026-11-19 at the user's request. Netplay needs testers, and a test build can only be handed out freely if it holds nothing of Return Fire's. So before netplay is built, the modding tools must be able to design and ship a separate game, and that game becomes the netplay test bed.

S7 does not depend on the fixed-point stages: it is editor and engine work, and can run alongside S5 and S6. Only Phase 5 waits for it.

  • The game is a standalone project (no base_pack, document 106). It may be Invasive Species (#62) or a smaller game made for the purpose; that choice is made when S7 starts.
  • Everything in it is made with the tools, not by hand-editing pack files or running Return Fire's converters: terrain tiles, sprites, vehicles (the model assembler, EDITOR_PLAN.md 4.5), weapons, sounds, at least one two-player map, and the front end and HUD skin (menus and skin are pack data, issues #83 to #87). Each thing the tools cannot do yet becomes an issue and is fixed in the engine or the editor, not worked around.
  • It ships as its own build: a pre-bundled export of that pack alone, with export filters that leave out packs/original_pc and the importer, as #61 decided for the "own game" release shape.
  • A check proves it holds no original asset: it compares every file in the export against the original pack's files (by hash) and against the registry of extracted assets, and fails on any match.
  • The determinism check runs on it too: a recorded match of the test game is part of S6's CI, so the netplay test bed is proven deterministic on every platform, not only Return Fire.
  • First step: an audit. Try to build the test game's first map and vehicle in the editor, and list every gap as an issue under one tracking issue. Done (document 179): the runtime runs a game with no Return Fire file; the tool writes 4 of about 40 pack tables. Tracking issue #143, stages S7.1 (the engine names no game) to S7.5 (the game, its build, the no-original-asset check, its CI recording).
  • The plan for the rest of S7 (document 180): the mod tool is the product, and S7 proves it. The user makes every picture, sound and map with it; nothing is generated. Eight stages: S7.1 the engine names no game, S7.2 art (blank sprites, frame sequences, the pixel editor brought forward, team masks), S7.3 maps, S7.4 vehicle numbers and weapons, S7.5 the vehicle assembler (a vehicle from 2D faces), S7.6 sounds, world objects and rules, S7.7 front end and HUD, S7.8 the game and its build. Each tool is built on Godot's runtime classes where they do the job; no step needs the Godot editor.

Risks and how the plan handles them

Risk Handling
A conversion quietly changes how the game plays Golden runs before and after each entity, existing behaviour checks, and the trace as the referee.
Integer overflow in 16.16 products GDScript ints are 64-bit; Fx.mul is the only multiply of two Q16.16 values, and its tests cover the largest map coordinates and speeds.
GDScript too slow on integer helpers The sim is tens of objects at 62.5 Hz. If profiling ever says otherwise, section 2.1's rule applies: a native version only behind the same interface and with a cross-implementation hash check.
A pack-format change breaks mods Each conversion keeps the old field readable for one release, with the mod tool writing the new one.
Something slips back in later The float lint in every test run.
Web differs from desktop S6 runs the browser in CI, not just desktop.

Where the code will be

  • game/sim/fx.gd (S3), game/sim/sim_hash.gd and game/sim/input_log.gd (S0), in the engine.
  • tests/determinism_check.gd and tests/float_lint_check.gd (S0), on the synthetic pack.
  • The trig tables: game/sim/fx_tables.gd in the engine, generated by tools/gen_fx_tables.py (maths, not pack data: see document 159).
  • PORTING_PLAN.md sections 2.1, Phase 5 and Phase 6 point here.

Clone this wiki locally