# Build progress The working log of a2600-rust-fast; the measured record is [status.md](status.md). (a2600-rust's own log is in its history, `07dfaf0`.) ## 2026-11-14 - Forked: `git clone /data/emu/a2600-rust` at `07dfaf0`, remote renamed `upstream`. Package `a2600-rust-fast`, crate still `a2600`. - `external/`: `refcache` copied from a2600-rust's (153 cases, a2600-python's traces, which a2600-rust matches); `venv`, `a2600-python`, `6502-python` linked to a2600-rust's. - Harness: `a2600-bench` (CPU time from schedstat, a CRC of every finished line and every audio sample), `scripts/ab.py` / `scripts/ab.sh` (gameboy-rust-fast's, adapted: five games, three layouts, CPU 31), `a2600-profile` (feature `profile`) and `scripts/profile.py`. - CPU 31 is an E-core (4.3 GHz max); pinned runs there are ~2x real time, unpinned runs on a P-core ~3.2x. A/A at the fork point: default x0.985, nf5 x1.023 (per game x0.95-x1.02): noise is about 3-5 %. - Profile at the fork point (Pitfall!, 1,200 frames): `TIA::step` 85 % self, `object_pixels` 7 %, `width_active` 2 %, the board's read 1.4 %, the 6502 core about 1 %. Hottest lines: the five ring events, the counters loop's skip test, the `hm_late` shift, the histories. - Kept so far (each gated, A/B on three layouts, its faults caught): `64a682d` step per edge and write (x1.130 / x1.164 / x1.157), `1e0d540` quiet steps skip the object sections (x1.290 / x1.266 / x1.263), `69a3f30` no object outputs while nothing draws (x1.025 / x1.032 / x1.031), `0d6fe15` hm_late shifted only while HMxx settles (x1.024 / x1.050 / x1.044), `643943f` the object sections' plain form when nothing is held (x1.186 / x1.204 / x1.198), `3b95a1b` idle counters remembered (x1.038 / x1.037 / x1.049). Not kept: fat LTO, `step_none`. - `9984c31`: the wasm check (examples/wasm_bench.rs, scripts/wasm-bench.mjs); wasm checksums equal native ones. - At `8c59acb`: `scripts/ab.sh a9fc6e0` x1.883 / x1.987 / x1.958; seeded faults 56 of 57 (fast 13 of 13; the inherited `state-forgets-data-bus` is missed, as upstream, a likely equivalent mutant); the whole ladder at the end (docs/status.md). - Method: edit, `scripts/quickgate.sh` (two minutes), `scripts/ab.sh BASE` (about twelve minutes; it measures a snapshot of the tree, so the next change can be written meanwhile), then commit and run the change's faults (`JOBS=2 scripts/seeded_faults.py --only fast-`). - A fault that makes the board hang (RDY never released) runs the lockstep into its 30-minute trace timeout: judge such a fault by the die gate only, or by `gatesN:` (a2600-gates with an N-second timeout). ## 2026-11-25 - Merged a2600-rust `4802263` (`316f1d7`): its repin of the reference to a2600-python `c410e47` (documents and the Stella and Gopher2600 source pins dropped; no source, test or gate script changed). No Rust change; conflicts only in the pin lines (this fork's own `1f8cdcd` repin). `external/a2600-python` moved to `c410e47`; the reference cache kept (same code). Ladder passed; `scripts/ab.sh 1f8cdcd` x1.009 / x0.993 / x1.018 at load average 75: noise (the same source; the bench binaries' `.text` is the same size and differs in 11 bytes, the worktree path strings' addresses). ## 2026-11-19 - Merged a2600-rust `f9af024` (`017fd5a`), whose log entry follows. Conflicts only in the lib.rs header, the seeded-fault table (both sides kept) and the docs; no optimised code conflicted (upstream's tia.rs change was its header pin; on_sample runs in `Audio::tick_b`, which the fork's TIA calls as before). `external/refcache` moved to `external/refcache-9475aa1`, replaced by a copy of a2600-rust's 232-case cache. Ladder passed; `scripts/ab.sh 523f1dc` x0.997 / x0.998 / x0.985 (rerun nf6 x1.011): noise. - a2600-rust's: repin to a2600-python `28fb095` (6502-python `741419a` on the reference side): `System::with_cpu`, `Audio::on_sample`, `CLOCKED` and the row clock in `from_rom`, `gates::timer_roms(.., machine)`, `gates::smoke_names`; `tests/dpc_clock.rs` and seven socket tests transcribed; the old reference cache moved to `external/refcache-9475aa1` and regenerated; cases for Pitfall II's music per row, three mid-run hand-overs and the timer ROMs on every row (232 cases); native `timers --every-row` and `hashes-rows`; seven new seeded faults. Counts in status.md. ## Next (for whoever resumes) - Merge `upstream` when a2600-rust moves; move `external/refcache` aside (never delete it) when the reference pin moves, and rerun the ladder. - The profile is flat over `TIA::edge`: small tweaks are about exhausted. Ideas not yet tried: caching "anything drawing" so `object_pixels` is not re-tested each step; a table for the colour priority mux; whole-line HBLANK paths (those change the per-cycle structure only if they stay exact; else they are turbo's). - play-2600 should be rebuilt on this crate and its milliseconds per frame measured on a phone (the reason this tier exists); Aubrey's call. - No remote: create one (private by default) when a host needs it.