Commit Graph

10 Commits

Author SHA1 Message Date
f1b85862da docs: correct the rebuild-cost yardstick in ADR-0004 and the spec
Measured while building #16: at 10 000 enemies the grid rebuild costs
0.057 ms against 0.021 ms for move_enemies — 2.7x more, not less. ADR-0004
§3 counted arithmetic and missed what dominates: move_enemies is a linear
table walk, the rebuild writes into ~7000 scattered buckets.

The decision does not change. It never rested on the comparison but on the
absolute bound of 0.10 ms, and 0.057 ms is 0.34 % of the frame budget; an
incremental update would pay the same scattered write on every cell
crossing. Revision trigger 1 and the acceptance criterion of spec feature 3
are restated on that bound, which is what the runnable check now asserts.

Also records the second deviation the build produced: a cell holds
(Entity, Vec2) rather than Entity, because soft separation writes Transform
while reading its neighbours' positions.
2026-08-11 09:03:43 +02:00
d9688c74dc docs: record project lessons that are not derivable from code or ADRs 2026-08-10 16:09:57 +02:00
6e1df29364 refactor: drop spent ablation knobs from perf spike, trim ADR-0002 consequences 2026-08-10 15:07:36 +02:00
68a587b948 docs: add ADR-0004 spatial grid, fix Fraction stat mode, extend spec 2026-08-10 14:32:22 +02:00
a9486d745f docs: add vertical slice spec 2026-08-10 14:02:39 +02:00
cb13adce33 docs: add ADR-0003 on save format, location and migration 2026-08-10 13:46:03 +02:00
1d8175cb5a docs: add in-run HUD mockup 2026-08-10 13:38:25 +02:00
0c812e3c1c docs: add ADR-0002 on stat and modifier pipeline 2026-08-10 13:19:24 +02:00
6fa10f72de docs: add ADR-0001 on balancing data location 2026-08-10 13:02:57 +02:00
8f057e2991 docs: sharpen wave definition and flag Coins naming collision 2026-08-10 12:38:20 +02:00