r/Simulated • • 3d 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

0 Upvotes

1 comment sorted by

4

u/_Bor_ges_ 3d 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.