Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/jkh2/Primordial-Sim/llms.txt

Use this file to discover all available pages before exploring further.

The World tab is the primary control surface for the simulation. It sets the scale of the ecosystem, controls food availability, and provides real-time population monitoring.

Sliders

SettingRangeDefaultDescription
Organisms500 – 50,000 (step 500)5,000Total number of organisms spawned at world initialization. Higher counts increase predator–prey dynamics but require more GPU throughput.
Food Pellets100 – 10,000 (step 100)2,000Maximum number of food pellets present in the world at any time. Organisms consume pellets to gain energy and grow.
Food Spawn Rate1 – 80 (step 1)15Pellets added per second. Low values create scarcity pressure; high values sustain larger populations with less competition.
Simulation Speed0.1 – 5.0 (step 0.05)1.00Multiplier applied to the simulation time step. Values above 1.0 fast-forward evolution; values below 1.0 slow it for detailed observation.
Changing Organisms or Number of Species (in the Species tab) calls initWorld, which completely resets the simulation — all organisms, food, generation counter, and population history are cleared.

Population graph

The Population Over Time canvas tracks per-species organism counts across the last 200 ticks, updating every 0.25 seconds. Each species is drawn as a colored line using that species’ assigned hue. The graph gives an at-a-glance view of boom-and-bust cycles, species dominance shifts, and extinction events.

Species census legend

Below the population graph, the Species Census row shows a colored dot for each active species alongside its live organism count. Dots use the same 12-color palette assigned at world initialization. Zero-count species remain listed to make extinctions visible.

Scenario presets

The Scenario Presets dropdown loads a curated set of slider and checkbox values tuned for a specific ecological dynamic:
PresetCharacter
Stable EdenHigh food, low aggression, steady coexistence
Arms RaceEscalating predation pressure, fast mutation
Battle RoyaleExtreme scarcity, very high organism count
SuperorganismStrong flocking, low inter-species conflict
Food Chain CycleRock-Paper-Scissors chain enabled with balanced species
Extinction EventMany species, extremely low food spawn rate
CustomManual configuration; set when any slider is moved
Applying a preset calls applyPreset(), then immediately calls resize() and initWorld() — the world resets automatically with the new parameters. There is no need to click Reset World separately after choosing a preset.

Reset World

The Reset World button re-initializes all organisms, food pellets, oases, and the generation counter using the current slider values. Population history is also cleared.

Stats bar

The stats bar at the bottom of the panel updates every frame:
ChipDescription
FPSFrames rendered per second by the WebGL loop
AliveLive organism count at the current frame
FoodActive food pellet count at the current frame
GenGeneration counter, incremented each reproduction event

Build docs developers (and LLMs) love