DetPhysDocs日本語

Same inputs, the same physics to the bit on every device

Deterministic 2D and 3D physics with rollback and turn-based netcode, for versus and co-op games where physics is the core of the play. Only inputs are sent. When peers drift apart, it shows the tick and the value. Unity, Godot and Unreal call the same core.

Quick startWhat it does

tickHostWindows x64, UnityGuestAndroid arm64, Godot
1439664035196640351
1447fe20a307fe20a30
1454634646c4634646c
1465be8423d5be8423d
147647390e6647390e6
1481025404c1025404c
1493d4da4bd3d4da4bd
15060ebe409804e5eb0

Desync found at tick 150

body 76, field xA 4.65541458 0x4094f928B 4.65541506 0x4094f929diff 1 ULP

Cause physics: same inputs and shapes, the physics values drifted

Guest replaced with the host's state
15176c91ec676c91ec6
1524d11870c4d11870c
1532e353e452e353e45
154a649ae63a649ae63
155fac6141afac6141a
156ead9d0a8ead9d0a8
On every confirmed tick, both devices send each other the state hash (low 32 bits) and compare

Choose your engine

Matches work across engines (Godot with Unity, Unreal with Unity, Unreal with Godot).

Measured

WhatValueConditions
Same hashWindows x64, Android arm64, iOS arm64The same with MSVC, clang-cl or MinGW builds. Devices: Galaxy S9 and iPhone 11. All three engines call the same prebuilt core
Traffic32–48 B per tick, one wayReal-time inputs, acks and hash checks, without UDP and IP headers
Rollback 2D3.50 ms per frame200 baked concave bodies, 10 ticks recomputed, i7-12700F, 4 workers
Rollback 3D3.15 ms per frame200 boxes, spheres, capsules and hulls, N = 10, i7-12700F, 4 workers
Mobile60 bodies at N = 10 within 4 msBaked concave shapes, Galaxy S9 (Snapdragon 845)
Desync reportAbout 0.3 sFrom detection until both devices hold the same report, PC and Galaxy S9

All performance numbers

Not included in this version (planned)

Everything the current version does

↑↓ to choose, Enter to open, Esc to close