SunaEngine is an open-source particle physics engine that guarantees bit-identical simulation output — every time, everywhere, on any WebGPU-capable device.
Two identical water columns, seeded from the same bytes. Watch them fall and settle — their 256-bit state hash stays byte-for-byte identical through every frame.
Drag through the water to push it around. Use the slider to scrub backward and forward through the simulation. Every frame is deterministic — the same inputs always produce the exact same result.
Most physics engines use floating-point math that varies between devices. SunaEngine doesn't.
Integer-only fixed-point arithmetic eliminates floating-point variance. Same input → same 256-bit hash, guaranteed, on any GPU.
Runs compute shaders directly on the GPU for maximum throughput. Thousands of particles at real-time frame rates.
The PBF solver handles density constraints, viscosity, cohesion, and surface tension — all in exact integer math.
No temperature, no reactions, no material presets. Just the pure solver core, ready to build on.
Record input sequences and replay them deterministically. Perfect for networked games, replays, and verification.
Runs in any browser with WebGPU support. Chrome, Edge, Firefox Nightly — same bytes, same hash, everywhere.