using-simulation-tactics
Game Simulation Tactics
Use this contract for the concrete task. Apply a short relevant check for a small change; expand investigation when the failure, risk or requested artifact warrants it. Resolve facts from the repository and runtime before imposing a process. Delegation is optional and should answer a bounded unresolved question.
Simulation contract
Identify player-visible behavior, interaction/scrutiny, engine/platform, scale, frame/tick budget and multiplayer/replay requirements. For a new system, compare full simulation with approximation or authored behavior. For an existing failure, diagnose it directly; do not restart a fidelity questionnaire.
- Specify state ownership, update/event order, time-step policy and engine interfaces. Record what must remain consistent when entities move between detail levels.
- Preserve conservation, continuity and identity where gameplay depends on them. LOD is not just a lower update frequency: transitions can duplicate resources, lose events or jump trajectories.
- Use target-engine facilities where they meet requirements. Sample A*/boids/FSM/physics code is illustrative, not a reason to build an engine subsystem from scratch.
- Profile representative scale, spikes and worst-case interactions before optimizing. Track frame budget by subsystem and retain a correctness/gameplay comparison after optimization.
- Decide determinism/replay requirements during design when relevant, and use fault-localization tooling when broken. A fixed timestep/shared seed does not alone establish cross-machine equivalence.
- Validate emergent boundary cases: congestion, extinction/runaway populations, economic feedback, simultaneous actions and time/weather transitions as applicable.
Evidence and output
Produce a focused implementation/repair or fidelity/LOD plan with visible requirements, state/transition invariants, performance evidence and affected gameplay checks. A mathematical proof, a stable trace and a successful playtest answer different questions; report which was obtained.