Archetype Asset
Fast, modular asset system for high-performance Rust game engines.
Features
- Backend Agnostic: Generic
GpuDeviceabstraction (Vulkan ready, Mock provided). - Runtime Agnostic: Generic
AsyncSpawner(Tokio support, Mock provided). - Spatial Preloading: Background loading based on player position.
- LOD Generation: Automatic mesh simplification using
meshopt. - Concurrency: High-performance caching with
DashMap. - Memory Pooling: Reduced fragmentation for geometry data.
Quick Start
use AssetCache;
use MockGpu;
use TokioSpawner; // requires feature "runtime-tokio"
async
Architecture
See ARCHITECTURAL_GUIDE.md for a deep dive into the system design, including the caching strategy, memory pooling, and spatial system.
Performance
-
Zero-Copy Uploads: Assets move from disk to GPU with minimal overhead.
-
Async Pipeline: Loading does not stall the main thread.
-
Smart Eviction: LRU-based eviction ensures memory budget compliance.
-
Proven Efficiency:
- 20% faster model loader instantiation.
- 7% faster cache hit lookups.
- Zero allocation mesh creation path.
Benchmarks run on Intel Core i5-11400F, Intel Arc A380, 16GB RAM.