WASI 0.2 COMPONENT MODEL · ZERO-GC

Data-Oriented Game Engine for Ube.

Compile gameplay logic directly to WebAssembly components. Powered by a native Rust host (winit + wgpu + wasmtime) with predictable memory and fast arena resets.

Garbage Collector
None (0 B)
Regional bump pointer wipes
3D Instance Layout
20 Floats
16-float Mat4 + 4-float RGBA tint
Execution ABI
WASI 0.2
Component Model exports
Host Pipeline
WGPU 4x MSAA
High-throughput batch runner

SYSTEM DESIGN

The Three-Tier Memory Hierarchy

Groot organizes memory into three distinct tiers to keep frame work predictable, from flat values to persistent generational pools.

01 / TIER 1

Value Primitives

Vectors, matrices, transforms, and colors are flat values in contiguous memory, without pointer indirection or reference overhead.

02 / TIER 2

Regional Bump Arenas

Frame scratch buffers live in scoped blocks (arena { ... }) and are reclaimed together when the scope ends.

03 / TIER 3

Generational Pools

Dynamic entities live in Pool[Entity]. Generational handles prevent stale references as slots are recycled.

SOURCE WORKBENCH

Idiomatic Ube Code

UBE · WASI 0.2
package main

import "github.com/JohnEsleyer/groot/app" as app
import "github.com/JohnEsleyer/groot/color" as color
import "github.com/JohnEsleyer/groot/input" as input

fn main() {
    let mut game = app::app_new_from_manifest()
    game.start()

    while game.is_running {
        game.begin_frame()
        if game.input.is_key_pressed(input::key_escape()) {
            game.stop()
        }

        arena {
            game.draw_rect(120.0, 80.0, 32.0, 32.0, color::green())
            game.present()
        }
    }
}

DIAGNOSTICS & TELEMETRY

Live Terminal Profiling (Ratatui)

Inspect frame latencies, ABI overhead, GPU uploads, and pool capacity in your terminal with local telemetry.

$ groot start . --monitor
GROOT MONITOR [PID 4028: solar_system]60.0 FPS
FRAME BUDGET16.6ms
├ Guest Simulation0.78ms ( 5%)
├ ABI Calls (8)0.24ms ( 1%)
├ GPU Upload/Encode0.51ms ( 3%)
└ Present / VSync Wait15.10ms (91%)
Instances: 38Triangles: 456Arena: 4.2 KB