Skip to content

Scale particle count with population (N) for peaceful start#129

Merged
bedwards merged 1 commit intomainfrom
feature/118-scale-particles-with-population
Jan 24, 2026
Merged

Scale particle count with population (N) for peaceful start#129
bedwards merged 1 commit intomainfrom
feature/118-scale-particles-with-population

Conversation

@bedwards
Copy link
Copy Markdown
Owner

Summary

  • Reduces initial particle count from 1000 to 280 (based on N=0.1)
  • Particle count now scales dynamically with population (N) from SDT state
  • MIN_PARTICLES (200) at N=0, MAX_PARTICLES (1000) at N=1
  • Gradual spawn/despawn (20 per update) to avoid frame spikes

This creates a peaceful initial game state that builds to chaos as population grows, making the SDT dynamics visually apparent.

Test plan

  • Start the game and verify fewer particles at startup (~280)
  • Let the simulation run and verify particles increase as N grows
  • Verify no frame rate drops during spawn/despawn
  • Verify particles despawn if population crashes

Closes #118

🤖 Generated with Claude Code

Reduces initial particle count from 1000 to 280 (based on N=0.1).
Particle count now scales dynamically with population:
- MIN_PARTICLES (200) at N=0
- MAX_PARTICLES (1000) at N=1
- Gradual spawn/despawn (20 per update) to avoid frame spikes

This creates a peaceful initial game state that builds to chaos
as population grows, making the SDT dynamics visually apparent.

Closes #118

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@bedwards bedwards merged commit 89cf01f into main Jan 24, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fewer glowing dots at start - less chaotic initial state

1 participant