Add save slots and stabilize dark-scene lighting #431

Closed
github-bot wants to merge 660 commits from github-bot/gh-431 into main AGit
Owner

@⁠Boneless-Sans on GitHub · 2026-11-28 23:36 UTC · original
Boneless-Sans:codex/save-slots-dark-scenes → main · +60113 −5434 · 206 files · 660 commits · closed without merging

Adds -SaveSlot with existing progress at zero and independent save directories above zero. The off-RT ambient resolve and fog use tighter color bounds when local lighting is dark. Focused save isolation and shader tests passed in the rollback checkout. Verification in a known nighttime scene is pending. Upstream main already contains the sparse texture fix used on the rollback branch.

**@⁠Boneless-Sans** on GitHub · 2026-11-28 23:36 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/431) `Boneless-Sans:codex/save-slots-dark-scenes` → `main` · +60113 −5434 · 206 files · 660 commits · closed without merging Adds -SaveSlot with existing progress at zero and independent save directories above zero. The off-RT ambient resolve and fog use tighter color bounds when local lighting is dark. Focused save isolation and shader tests passed in the rollback checkout. Verification in a known nighttime scene is pending. Upstream main already contains the sparse texture fix used on the rollback branch.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 23:37:33 +00:00
Author
Owner

@⁠Kal0s-design on GitHub · 2026-11-29 10:45 UTC · original · reviewed

Checked this out on Windows (8914fdd). CI hasn't run on the branch, so here's what I ran by hand.

  • cargo test -p victory-core -p victory-gpu: all pass, the new save_slots_keep_existing_data_and_share_the_cache included. cargo clippy -p victory-core -p victory-gpu --all-targets -D warnings and cargo xtask policy are clean.
  • Compiled every ambient pass (AIR, GATHER, HOLD, HOLD_INDIRECT, KEEP keep/mean, PLACE, RAISE) with fxc cs_5_1 /O1, the same as host::compile with flags 0, for each of DARK_COLOR_BOUND, LOCAL_COLOR_BOUND and neither. All 24 compile. I also looked at the clear_air disassembly, since FXC without IEEE strictness can sometimes fold NaN checks away. It doesn't here: the ne r, r and the 0x7f800000 compare are both still there.

Two things before merging, I think:

  1. The lighting part is on by default (DARK_COLOR_BOUND unless VICTORY_AMBIENT_COLOR_BOUND=0), but the description says the night scene check is still pending. That changes the picture for everyone without a before/after. Could it be opt-in until there's a capture, or split from the save slots, which are independent and look ready?
  2. VICTORY_AMBIENT_COLOR_BOUND=1 is documented as a per-channel cap at every light level, but clear_air has no LOCAL_COLOR_BOUND branch. With =1 the air gets only the old luma cap, and only raise gets the per-channel one.

Minor: play.ps1 always writes VICTORY_SAVE_SLOT from -SaveSlot (default 0), so a slot set in the environment beforehand is ignored. That's fine if -SaveSlot is meant to be the only way in, but it might be worth a line in the README.

AI-assisted: yes

**@⁠Kal0s-design** on GitHub · 2026-11-29 10:45 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/431#pullrequestreview-6102526913) · **reviewed** Checked this out on Windows (8914fdd). CI hasn't run on the branch, so here's what I ran by hand. - `cargo test -p victory-core -p victory-gpu`: all pass, the new `save_slots_keep_existing_data_and_share_the_cache` included. `cargo clippy -p victory-core -p victory-gpu --all-targets -D warnings` and `cargo xtask policy` are clean. - Compiled every ambient pass (AIR, GATHER, HOLD, HOLD_INDIRECT, KEEP keep/mean, PLACE, RAISE) with fxc `cs_5_1 /O1`, the same as `host::compile` with flags 0, for each of DARK_COLOR_BOUND, LOCAL_COLOR_BOUND and neither. All 24 compile. I also looked at the `clear_air` disassembly, since FXC without IEEE strictness can sometimes fold NaN checks away. It doesn't here: the `ne r, r` and the 0x7f800000 compare are both still there. Two things before merging, I think: 1. The lighting part is on by default (`DARK_COLOR_BOUND` unless `VICTORY_AMBIENT_COLOR_BOUND=0`), but the description says the night scene check is still pending. That changes the picture for everyone without a before/after. Could it be opt-in until there's a capture, or split from the save slots, which are independent and look ready? 2. `VICTORY_AMBIENT_COLOR_BOUND=1` is documented as a per-channel cap at every light level, but `clear_air` has no LOCAL_COLOR_BOUND branch. With `=1` the air gets only the old luma cap, and only `raise` gets the per-channel one. Minor: `play.ps1` always writes `VICTORY_SAVE_SLOT` from `-SaveSlot` (default `0`), so a slot set in the environment beforehand is ignored. That's fine if `-SaveSlot` is meant to be the only way in, but it might be worth a line in the README. AI-assisted: yes
Author
Owner

@⁠TaynanGT on GitHub · 2026-11-29 11:35 UTC · original

Thanks for the native tests and FXC checks. I agree that save slots and lighting should be evaluated separately. The lighting change needs an opt-in path or matched visual evidence before it becomes a default, and the documented LOCAL_COLOR_BOUND behavior needs to match clear_air as well as raise. Please also document the SaveSlot precedence.

**@⁠TaynanGT** on GitHub · 2026-11-29 11:35 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/431#issuecomment-7255215700) Thanks for the native tests and FXC checks. I agree that save slots and lighting should be evaluated separately. The lighting change needs an opt-in path or matched visual evidence before it becomes a default, and the documented LOCAL_COLOR_BOUND behavior needs to match clear_air as well as raise. Please also document the SaveSlot precedence.
github-bot closed this pull request 2026-11-30 17:08:44 +00:00
Author
Owner

@⁠TaynanGT on GitHub · 2026-11-30 17:07 UTC · original

main has moved to a new line of the code and everything is now named Vice-Tay, so this PR no longer applies as it is (details in #468). If you'd like this change in, please rebuild it on the current main and open a new PR; I'll review it there.

**@⁠TaynanGT** on GitHub · 2026-11-30 17:07 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/431#issuecomment-7285756093) `main` has moved to a new line of the code and everything is now named Vice-Tay, so this PR no longer applies as it is (details in #468). If you'd like this change in, please rebuild it on the current `main` and open a new PR; I'll review it there.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.