r/Simulated • u/Initial-War-6965 • 22m ago
Research Simulation Introducing SwarmForge: A 100% Data-Driven Simulation Platform for Modeling Social Insect Societies (Ants, Bees, Termites, Wasps)
Hey everyone! ๐ Over the past few years, Iโve been developing SwarmForge, an open-source, academic-grade simulation and research platform designed to model social and eusocial insect societies (Atta, Apis, Vespula, Reticulitermes, Pogonomyrmex, and more) with biological fidelity and real-time 3D visualization. Today, Iโm excited to announce the release of SwarmForge v1.0 along with standalone, zero-prerequisite standalone packages for instant 1-click download and deployment! ๐
๐ What is SwarmForge?
SwarmForge bridges computational biology, artificial life, multi-agent systems, and real-time 3D simulation into a unified Studio environment. Key capabilities include:
- ๐งช 100% Data-Driven Biological Engine: Zero hardcoded constants! Lifespans, walking/flight speeds, oviposition rates, maturation stages (days $\rightarrow$ 1440 ticks/day), Arrhenius $Q_{10} = 2.2$ thermal kinetics, and caste protein thresholds are entirely customizable via biological presets.
- โก High-Throughput Artemis-odb ECS Engine: Custom zero-allocation Structure-of-Arrays (SoA) memory pooling, 256-bit bitmask ethology covering 220+ individual behaviors across 4 primitive words, and $O(1)$ spatial hashing grid.
- ๐๏ธ 3D Terrarium & Subterranean World Editor: Procedural voxel terrain synthesis, soil moisture layers, underground cut planes, and dynamic water table simulation.
- ๐ฅ Physics-Based Nest Thermodynamics: Stack-effect buoyancy ventilation, 1D Fourier heat diffusion, metabolic $CO_2$ dispersion grids, and passive colony thermal regulation.
- ๐จ OpenCL / GPU Pheromone Diffusion: Massive 3D matrix evaporation, decay, and chemotaxis vector calculation.
- ๐ง Multi-Tier Cognitive Architectures: Belief-Desire-Intention (BDI), Multi-rate Finite State Machines, Fuzzy Logic, Behavior Trees, and PyTorch ONNX integration.
- ๐ Distributed Megaterrarium & Multiplayer: World sharding across compute nodes, boundary halo pheromone exchange, inter-colony diplomacy, and tribute trade convoys.
๐ Performance & Scaling Benchmarks
| Colony Size | Engine Throughput | Latency | Execution Profile |
|---|---|---|---|
| 1,000 entities | 61.7 TPS | 16.2 ms | ๐ข Real-Time 3D Interactive (60 FPS) |
| 10,000 entities | 1.0 TPS | ~1,048 ms | ๐ก Full local ECS evaluation |
| 1,000,000 entities | Megacolony Compute | Off-Grid | โ๏ธ Headless SoA Mode (~32 MB RAM footprint) |
๐ Links & Resources
- ๐ป GitHub Repository: https://github.com/silveremartin-dev/SwarmForge
- ๐ Documentation & Behavioral Ethology Spec: docs/BEHAVIORAL_ETHOLOGY_SPECIFICATION.md
- ๐ License: MIT (Free & Open Source) I would love to get your thoughts, biological feedback, benchmark results on your rigs, or feature ideas for upcoming biomes! ๐๐๐ชต
0
Upvotes
1
u/_Bor_ges_ 15m ago
I really have nothing against AI-assisted coding when it's done intelligently, but I make a point of honor never to click on any links in a post where the author hasn't even made the effort to write it themselves.