Files
deepgrain-foundry/tasks/t21.md
T
2026-10-24 19:28:00 -04:00

1006 B


id: t21 status: Backlog order: 3 priority: P3 created: 2026-10-24 updated: 2026-10-24T23:26:09Z title: Code health: refactor, speed up and test the physics

Context

  • The code has grown fast. Clean it up and make it faster without changing how the game plays, and give the physics a full test pass, starting with water: water running off the edge of the world never seems to run out (it may only be slow; find out, and fix it if it really doesn't). (Merged from t24 water fixes.)

Subtasks

  • Remove duplicated code and split the largest modules into smaller files
  • Profile the simulation and rendering on a Huge world and speed up the slowest parts
  • A full test pass over water physics in every situation (pools, flows, falls off the world edge, pumps and pipes, freezing and boiling); fix what is wrong
  • The same kind of pass over sand, molten metal and gases where tests are thin
  • Fix issues found along the way, and test every piece of gameplay the changes touch