Upstream/read map run conf #394
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/lobomfz--VIctory-xmem!394
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-394"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@cerealfordinner on GitHub · 2026-12-03 23:57 UTC · original
cerealfordinner:upstream/read-map-run-conf→main· +736 −16 · 9 files · 3 commits · closed without mergingTwo small fixes for #106
Two commits on top of this PR's branch (
upstream/read-map-run-confincerealfordinner/victory-xmem-cerealfordinner):
run: let run.conf override the read-map paths—run.shexportedVICTORY_READ_MAPunconditionally, so an explicitVICTORY_READ_MAP=inrun.confwas silently overwritten (and the documented way to turn the mapoff did nothing). Use
${VICTORY_READ_MAP-...}so a set value wins,including an empty one.
panel: fill the read-map fields in the HUD snapshot test— the testfixture was missing the new
read_map_*fields, so the snapshot test failson this branch. Fill them in, with the usual stress/steady values.
Tested with
bash -n run.shandcargo check --target x86_64-pc-windows-gnu -p victory-gpu --tests.Note: the branch sits on this PR's head (
f7f0360), not on currentmain;it will need the usual rebase before it can merge.
github-bot referenced this pull request2026-12-04 01:44:04 +00:00
@Luxuride on GitHub · 2026-12-04 11:28 UTC · original · edited 2026-12-04 13:00 UTC
Two things before this can be reviewed on its merits.
d676e93is #106's single head commit and this PR addse185bfb(run.conf override) and004e269(HUD fixture) on top of that same branch, so what a reviewer gets here is the base's diff plus the increment, and what the base gets is nothing.A stack is a good approach exactly when the base is alive: rebased on current
main, under review, and close enough to merge that the increment can be read against it and will land days later. None of that is true of #106 — it is 247 commits behind, it conflicts, and it has never had a review — so the stack turns one stale branch into two: closing the base strands the head, every change to the base rebases this, and GitHub will only retarget this tomainon its own if #106 merges and its branch is deleted.The shape that works here is one PR against
main: the read-map commit rebased, with these two folded in — they are about thirty lines and a test fixture, and they fix bugs in the commit they sit on, which is another reason they belong in it rather than behind it. If they must stay separate, the order is: land the read-map work first, then rebase this ontomain.git merge-treeshows a single mechanicalREADME.mdconflict, butdstorage.rs,panel.rsandrun.shhave drifted a long way, so the rebase needs its own review pass either way.run.sh:34andread_map.rs:24-27point atconfig/read-map.txt"kept in the repo", the PR adds no such file, soload()misses and every player starts empty.VICTORY_READ_MAP_DEFAULTis documented nowhere either.Then the contradictions that will cost the next reader an hour:
read_map.rs:11-12says "unset turns all of this off", butrun.sh:31-34always exports a default path — unset means "use the default", and only an empty value disables it, as README andget()(:146) actually do.e185bfbis the right fix for therun.confhalf of this, but the comment in the module still needs to say what now happens.read_map.rs:56-60says a short session "adds what it read", butsave()has one caller on a 180 s timer (:353) and no exit path, so under three minutes stores nothing.read_map.rs:322-339labels a field "last minute" whilespentis cumulative and never reset (:349,:412).read_map.rs:233-234counts a piece twice once it is both loaded and re-read, so the HUD "pcs" figure drifts upward.Smaller:
let id = m.names.len() as u16(:194) wraps past 65535 distinct paths, and that is the persisted format;reading()/read()must stay paired orquiet()never becomes true and prefetch stops for the session (balanced today atdstorage.rs:1480/:1514, but a guard type would be sturdier); and the mode-tag change to "xmem HW-RT"/"xmem SW-RT" (panel.rs:1783-1790) is unrelated to read-ahead — split it out.What I checked and found correct: the panel is 660x216 -> 660x228, exactly one 12 px row, and the vtable/keys/footer shift by one row each with nothing overlapping.
@cerealfordinner on GitHub · 2026-12-04 18:18 UTC · original
Closing — code changes already in our fork at cerealfordinner/victory-xmem-hw-rt (commits 1427ddbd and 0a448cde are ancestors of main). No need to keep this PR open; the changes were applied directly to our branch.
Pull request closed