"Need voxels? Reach for Voxelis." Powered by VoxTree â a deliciously crafted SVO DAG with batching. Drop it into your Rust, C++, Godot, or Bevy project and start carving worlds down to centimetre-level detail â while your memory bill stays shockingly low.
ð Why Voxelis?
- Tiny voxels (4 cm resolution) without melting your RAM.
- Shared memory â DAG compression at 99.999% ratio.
- Batch edits â mutate hundreds of thousands of voxels in a blink.
- Zero garbage collection â just deterministic reference counting with generations.
- Built for gamedev â chunk grids, paging hooks, multithread-ready.
- Fearless Rust â no UB, no data races, only pure, undiluted speed.
This isn't just another voxel crate. It's a foundation for colossal, high-fidelity worlds.
âĻ Benchmarks: "Speed so fast, it hurts."
| Operation | 32Âģ Voxels | Single Op | Batch Op | Notes |
|---|---|---|---|---|
| fill() | 32K | 9 ns | 10.6 ns | ⥠Single leaf collapse |
| set_uniform() | 32K | 5.17 ms | 23.1 Ξs | ð ~224à faster |
| set_checkerboard() | 32K | 2.52 ms | 116.6 Ξs | ð ~22à faster |
| set_sum() (high-entropy) | 32K | 5.92 ms | 194.1 Ξs | ðŠïļ Complex pattern, ~30à faster |
| perlin dunes (high-entropy) | 32K | - | ~12 Ξs | ð ~1380 chunks/frame (60 FPS) |
Full raw results? Check benches-raw.md.
Summary tables? See benches-tables.md.
Full commentary and insights? Dive into benches.md.
ð§ Quick Start
use ;
use IVec3;
let mut interner = with_memory_budget;
let mut tree = new; // 32Âģ voxels (chunk)
let mut batch = tree.create_batch;
batch.fill; // air
batch.set; // stone
tree.apply_batch?;
assert_eq!;
Add via Cargo:
ð Under the Hood
| Concept | Purpose |
|---|---|
| VoxTree | The SVO-DAG â compressed octree core. |
| VoxInterner | Shared memory for leaves/branches. Hash-consed. |
| Batch | Bottom-up batched editing â mutate at light speed. |
| VoxOps | Trait for per-voxel manipulation â set, get, fill, clear. |
| BlockId | 64-bit magic to encode voxel state compactly. |
| Mesher | SIMD greedy meshing (WIP) â turn voxels into worlds. |
More? Crack open The Voxelis Bible (docs/The Voxelis Bible_ From Pixels to Worlds - An In-Depth Guide v2.3.pdf) â 38 pages of dangerously concentrated nerdery.
ð Roadmap: Into the Voxelverse
- Multithreaded interner with Rayon.
- GreedyMesh v2 (distance-field LOD magic).
- GPU frustum-culling traversals.
- OBJ / glTF import/export.
- True out-of-core paging (MMAP + LRU).
PRs welcome. Bonus points if your patch makes the CI bot ðâð purr.
ðĄ Run Your Own Benches
Hardware: Apple M3 Max, Rust 1.86 stable, -C target-cpu=native, final profile.
Want real numbers? We've got them â benches-tables.md and benches-raw.md await.
ð Contributing
- Fork and branch (
feat/my-magnificent-contribution). cargo test && cargo bench- Open PR, include new benchmark delta.
- Bask in voxel-induced glory.
ð License
Dual licensed under MIT / Apache-2.0. Pick your poison, build something massive.
â ïļ Warning
Voxelis may cause extreme enthusiasm, uncontrollable world-building, and compulsive Rust evangelism. Consult your GPU before operating heavy voxel engines. ð