Deterministic Cross-Platform Simulation Steps: Reconciling 1.69 mJ/Tick and the 7,728x Python-vs-C++20 Ratio
Verifies bit-identical 100,000-tick Q32.32 integer state steps across 8 languages and 4 CPU architectures, clarifying that 1.694 mJ/tick and 7,728x are Linux RAPL reported_j comparing C++20 -O3 against interpreted rce emit python (not Unity/Godot).
Temporal & Archival Scope: Era II OpenIE Study (November 22, 2026) · Canonical OpenIE Chronicle Entry: https://blog.openie.dev/posts/game-engines/ · Primary Paper & Methods: https://research.openie.dev/papers/game-engines/ · Canonical Digest:
blake3:tv:77911a4ef555be4fc2b485790d43a76cff398719ebebd3b0f3f9c1fffa353adbProvenance & Telemetry Hygiene: Signed Provenance · Self-Checked (automated OpenIE internal gates; not externally peer-reviewed) · Energy Class:
reported_j(measured_j ⊥ reported_j ⊥ est_j ⊥ unmetered— Verification, Licensing & AI-Use Disclosure · Glossary & Non-Mixing Rules).
Key Claims & Evidence Tags
- [E · Reconciled Telemetry Class & Both Sides of
7,728x(reported_j)] Earlier metadata pairedboard_metered = false(measured_j = null) with an unqualified"1.7 mJ"and"> 7,000x"headline. Grounded inGE-H5(src/content/papers/game-engines.md), both numbers are Intel Core i9-13900H Linuxintel-rapl:0socketreported_jover500ticks ofN = 10,000Q32.32fixed-point actors: compiledC++20(clang++ -O3) used1.694 mJ/tick(0.0583 ms/tick,p99 = 0.0654 ms),Wasm32(Node V8) used2.211 mJ/tick(0.0724 ms), andRust -O3used3.673 mJ/tick(0.1248 ms), compared against boxed interpretedrce emit python(CPython 3.14) at13,090.57 mJ/tick(13.09 J/tick,564.58 ms/tick)—a7,728x(C++20) and3,564x–7,728xspeedup/energy cut over interpreted Python, not over commercial C++/C# engines (Unity Burst/DOTS,Unreal,Godot). - [E ·
32/32Cross-Architecture Lockstep Parity] Replacing IEEE-754 floats (whoseFMAcontraction, x87/SSE rounding, and transcendental libraries diverge across chips) withQ32.32fixed-point integer Forms yielded0state-hash divergences across100,000ticks in all32cells (8target languages ×4architectures:macOS arm64,Linux aarch64,Linux x86-64,Windows x86-64) inGE-H1. - [E · Scope Boundary: State Logic Only, Not Rendering or Mesh Physics] Benchmarks step pure deterministic gameplay/kinematic state transitions; GPU rasterization/raytracing, triangle-mesh broadphase/narrowphase collision, audio mixing, and multithreaded ECS job stealing remain outside scope.
Methods, Baselines & Artifact Scope
- Methodological Dimension: Hardware & Telemetry · Primary-Paper Grounding & Scope:
GE-H510k-actor scaling:Intel Core i9-13900HLinuxpowercapintel-rapl:0socketL2+ corePP0reported_j(measured_j = null,board_metered = false).GE-H1100k-tick parity:Apple Silicon(ri_energy_njL30.073–13.60 J),Linux x86-64(RAPL1.89–181.87 J),Linux aarch64, andWindows x86-64. - Methodological Dimension: Workload & Benchmark Suite · Primary-Paper Grounding & Scope:
GE-H1:100,000-tick deterministic arena state machine emitted to8targets (C++20,Rust,Zig/C,Go,Wasm32,JavaScript,Scala/JVM,Python).GE-H5:N = 10,000Q32.32fixed-point bouncing/interacting actors stepped for500ticks. - Methodological Dimension: Baseline(s) Compared · Primary-Paper Grounding & Scope: Compiled native/Wasm RCE emitters (
C++20 -O3,Wasm32,Rust -O3) vs. reference interpretedrce emit python(CPython 3.14); floating-point cross-compiler drift probe vs.Q32.32integer arithmetic. External commercial game engines (Unity,Unreal,Godot,Bevy): not benchmarked inGE-H5. - Methodological Dimension: Runs (N) & Spread / Uncertainty · Primary-Paper Grounding & Scope:
GE-H1:32language×host cells ×100,000ticks (0bit mismatches).GE-H5:500consecutive ticks atN = 10,000actors (C++20mean0.0583 ms/tick,p99 = 0.0654 ms,1.694 mJ/ticksocket /1.454 mJcorereported_j). - Methodological Dimension: Caching / Cold vs. Warm Scope · Primary-Paper Grounding & Scope: Warm in-memory tick loop (
V8JIT warmed prior toWasm32/JSsteady-state window; zero cross-tick memoization since actor positions mutate every tick). - Methodological Dimension: Artifact & License Availability · Primary-Paper Grounding & Scope: Core emitters public in
openIE-dev/rce(Apache-2.0); benchmark tables and primary paper (CC0-1.0) atresearch.openie.dev/papers/game-engines/; self-checked, not externally peer-reviewed.
Reconciling joules = null Metadata with 1.694 mJ/tick and 7,728x
In OpenIE’s manuscript frontmatter, board_metered: false indicates measured_j = null (no physical inline DC shunt or wall wattmeter was attached), not the absence of on-chip CPU counters. Setting this post’s energyClass explicitly to reported_j and naming both sides of the ratio eliminates all ambiguity [E]:
-
Numerator (
13,090.57 mJ/tick,564.58 ms/tick): Referencerce emit pythonrunning onCPython 3.14, which allocates boxed Pythonintobjects on everyQ32.32fixed-point multiply-shift across10,000actors[E]. -
Denominator (
1.694 mJ/ticksocket /1.454 mJcore,0.0583 ms/tick): Unboxedint64_tC++20(clang++ -O3) generated from the exact same RCE Form, achieving a7,728xlower socketreported_j(5,921xforNode V8 Wasm32at2.211 mJ/tick;3,564xforRust -O3at3.673 mJ/tickdue to extra bounds/struct-copy checks in the emitted Rust projection)[E].
This 7,728x figure therefore measures the interpreter boxing tax removed by multi-target native codegen, not a speedup over handwritten C++ or Unity Burst/DOTS [E].
Deterministic Lockstep & Replay Verification (GE-H1)
Multiplayer rollback netcode (GGPO) and simulation replay require identical state hashes from identical input logs across heterogeneous client CPUs (arm64 Apple/Snapdragon vs. x86-64 AMD/Intel, browser Wasm32 vs. native server) [S]. By banning hardware-dependent IEEE-754 rounding from core transition Forms and compiling one Q32.32 specification across 8 targets, all 32 host×language combinations produced identical SHA-256 state digests after 100,000 steps [E].
Limitations & Unbenchmarked Subsystems
-
Not a full game engine: A production engine spends most frame power in GPU shader execution, VRAM bandwidth, skeletal animation, GJK/EPA convex-hull collision, and spatial audio—none of which are modeled in
10,000-actor 2D/kinematic state stepping[E]. -
Single-threaded step: Multi-core data-oriented ECS schedulers (
Bevy,Flecs,Unity DOTS) and SIMDAVX2/NEONvectorization of emitted loops remain open work[E].
Energy & Telemetry Scope
All joule values are Linux intel-rapl:0 (L2) and macOS ri_energy_nj (L3) reported_j (measured_j = null, board_metered = false), compared strictly within the Intel Core i9-13900H GE-H5 run.
Related Work & References
- Bettner & Terrano (Age of Empires, GDC 2001) & Cannon (GGPO Rollback Netcode, 2009): Deterministic input-log lockstep and rollback networking in commercial games
[S]. - Monniaux (ACM TOPLAS, 2008): Pitfalls of verifying floating-point computations across x86/ARM compilers and FMA instructions
[S]. - Pereira et al. (SLE 2017) & Berger, Parnin & Vitek (2023): Cross-language CPU
RAPLenergy comparisons and interpreter vs. native execution caveats[S]. - Unity DOTS / Burst, Bevy ECS & Box2D v3: Production deterministic/data-oriented simulation architectures
[S].
Canonical Provenance, Primary Artifacts & Independent Replication
- Canonical OpenIE Chronicle Entry: https://blog.openie.dev/posts/game-engines/
- Primary Study & Methods: https://research.openie.dev/papers/game-engines/
- Public Code / Replication Harness: https://github.com/openIE-dev/rce
- Illustrated Video Summary (OpenIE Research TV): https://research.openie.dev/tv/?study=game-engines (9:16 Vertical MP4)
- Signed Provenance · Self-Checked Disclosure & Licensing: Multi-language Form emitters public in openIE-dev/rce (Apache-2.0) and simulation receipts on research.openie.dev (CC0-1.0); self-checked, not externally peer-reviewed. Full details at https://blog.openie.dev/verification/ and https://blog.openie.dev/glossary/.