RealmWeaver-AI (MADWE): a four-agent diffusion world engine
Role: Architecture and Integration Lead
Game worlds built by four generative agents and rendered in Unity
- Problem
- A game world needs terrain, assets, characters and story that fit together.
- What was done
- Led architecture and integration: four agents on a shared world state graph, connected to Unity over named-pipe IPC.
- What changed
- The Day 8 monitor measured about 19 to 28 FPS against a 30 FPS target, about 35 to 49 ms per frame.
- Frame rate on Day 8, 30 FPS target
- about 19 to 28 FPS
- Frame time
- about 35 to 49 ms
- Memory, 8 GB limit
- about 6.0 to 6.5 GB
- Agent messages per second, 200 target
- about 190 to 300
Explore the numbers
Reported numbers
Frame rate on Day 8, 30 FPS target
Frame rate on Day 8, 30 FPS target: about 19 to 28 FPS
4 metrics from the project write-up
Problem
Generating a playable world means terrain, assets, characters and narrative have to agree with each other and reach the game engine in time.
Approach
Four agents share a neural world state graph. Wave Function CollapseAn algorithm that generates maps or patterns by filling a grid one tile at a time so each tile fits its neighbors.Read more about Wave Function Collapse on github.com assembles the tilemaps. The asset agent uses Stable Diffusion 1.5 with LoRALow-rank adaptation: a way to fine-tune a large model by training a small set of added weights instead of changing all of them.Read more about LoRA on arxiv.org at rank 8, fp16 and gradient checkpointing, and is the only part that uses LangGraph. Unity talks to the agents over named-pipe IPC.
Highlights
- Led architecture and integration of four agents on a shared world state graph.
- Connected the agents to Unity over named-pipe IPC.
- Measured about 19 to 28 FPS against a 30 FPS target on Day 8.
- Frame time ran about 35 to 49 ms.
- Memory held at about 6.0 to 6.5 GB of an 8 GB limit.
- Agents exchanged about 190 to 300 messages per second against a 200 target.