Allocation-free Zig game packages
A hobby collection of small Zig game-building packages that avoid memory allocation after startup, work when the memory map can be declared statically (e.g. wasm-4-like targets or the RP2040), run in resource-constrained environments, and perform well on the Steam Deck. They use Zig comptime to derive functions that compute pointer offsets or rely on pre-computed offset tables, keeping code small while preserving full SIMD use. Planned work includes statically computing archetype update graphs for a lock-free multi-threaded world-update runtime that mixes work broadcasting and work stealing on larger targets.
What it addresses
Game libraries typically allocate memory at runtime, which prevents them from running on resource-constrained environments such as wasm-4-like targets or the RP2040 microcontroller.
Shared over time
Each entry reflects what was shared on that date. Details may have changed since then.
Allocation-free Zig game packages
A hobby collection of small Zig game-building packages that avoid memory allocation after startup, work when the memory map can be declared statically (e.g. wasm-4-like targets or the RP2040), run in resource-constrained environments, and perform well on the Steam Deck. They use Zig comptime to derive functions that compute pointer offsets or rely on pre-computed offset tables, keeping code small while preserving full SIMD use. Planned work includes statically computing archetype update graphs for a lock-free multi-threaded world-update runtime that mixes work broadcasting and work stealing on larger targets.
Problem: Game libraries typically allocate memory at runtime, which prevents them from running on resource-constrained environments such as wasm-4-like targets or the RP2040 microcontroller.
Audience: Game developers building for embedded, web, and handheld targets
Posted by @tauoverpi · Original source ↗
Source text · @tauoverpi · · Source ↗
implementing small packages for building games that don't allocate memory post startup (or work when the memory map can be declared statically such as with wasm-4-like targets or an rp2040) and can run in resource constrained environments along with performing well on a steamdeck.