Fix a broken README command, a test that couldn't fail, and keep the card-buffer floor #478

Manually merged
github merged 3 commits from github-bot/gh-478 into main 2026-11-30 20:54:07 +00:00 AGit
Owner

@⁠TaynanGT on GitHub · 2026-11-30 20:32 UTC · original
TaynanGT:small-memory-review-fixes → main · +140 −59 · 5 files · 3 commits · merged 2026-11-30 20:52 UTC

Follow-up to #476. Three real problems, two from review and one from a measurement that came in after the merge.

The README command was broken. A scripted edit ate the backslash in .\vice-tay.exe config and left a vertical tab in its place, so copying the line as written gives "not recognized" and the new diagnostic step can't be run from the docs at all. One byte. I edited that file with a script and didn't read it back, which is how it shipped. I checked every other file I touched the same way — this was the only one.

A test that couldn't fail. a_switch_set_by_hand_is_kept_and_the_start_says_so asserted on the plan's own left unset line, which gets printed whether the switch is set or not. So it passed for the wrong reason and would never have caught the behaviour going missing.

Fixed by giving config the thing the test was reaching for: it now prints the kept and lowered lines as well as the plan. It should have done that from the start — on a PC where the launcher and the profile both have an opinion about a switch, which one won is the whole question. The tests assert the real lines now, including the negative case, and deleting the printing makes all three fail.

The card-buffer floor stays. Dropping VICE_TAY_CARD_BUFFERS_MIN_KB on a card under 8 GB was a reading of #446, not a measurement. It has been measured since: on the prison cinematic at 4K, dropping it took the rendered rate from 6.2 fps to 2.2 and the worst frame from 721 ms to 1,482 — three 90-second runs on an RTX 4090.

That's a 24 GB card, not a 4 GB one, so it doesn't settle #446 either way. But it's the only number anyone has and it says the floor earns its keep, so the profile names the switch in its notes instead of touching it. What bounds those copies on a small card is their total, and play already caps that at 256 MB under 8 GB.

Tested

cargo test -p vice-tay-core -p vice-tay: 159 pass, 0 fail. cargo clippy --all-targets on both: clean. Mutation check on the three new tests: remove the printing from show() and all three fail; restore it and they pass. Every file in #476 re-scanned for control characters: none left.

**@⁠TaynanGT** on GitHub · 2026-11-30 20:32 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/478) `TaynanGT:small-memory-review-fixes` → `main` · +140 −59 · 5 files · 3 commits · merged 2026-11-30 20:52 UTC Follow-up to #476. Three real problems, two from review and one from a measurement that came in after the merge. **The README command was broken.** A scripted edit ate the backslash in `.\vice-tay.exe config` and left a vertical tab in its place, so copying the line as written gives "not recognized" and the new diagnostic step can't be run from the docs at all. One byte. I edited that file with a script and didn't read it back, which is how it shipped. I checked every other file I touched the same way — this was the only one. **A test that couldn't fail.** `a_switch_set_by_hand_is_kept_and_the_start_says_so` asserted on the plan's own `left unset` line, which gets printed whether the switch is set or not. So it passed for the wrong reason and would never have caught the behaviour going missing. Fixed by giving `config` the thing the test was reaching for: it now prints the kept and lowered lines as well as the plan. It should have done that from the start — on a PC where the launcher and the profile both have an opinion about a switch, which one won is the whole question. The tests assert the real lines now, including the negative case, and deleting the printing makes all three fail. **The card-buffer floor stays.** Dropping `VICE_TAY_CARD_BUFFERS_MIN_KB` on a card under 8 GB was a reading of #446, not a measurement. It has been measured since: on the prison cinematic at 4K, dropping it took the rendered rate from 6.2 fps to 2.2 and the worst frame from 721 ms to 1,482 — three 90-second runs on an RTX 4090. That's a 24 GB card, not a 4 GB one, so it doesn't settle #446 either way. But it's the only number anyone has and it says the floor earns its keep, so the profile names the switch in its notes instead of touching it. What bounds those copies on a small card is their total, and `play` already caps that at 256 MB under 8 GB. ### Tested `cargo test -p vice-tay-core -p vice-tay`: 159 pass, 0 fail. `cargo clippy --all-targets` on both: clean. Mutation check on the three new tests: remove the printing from `show()` and all three fail; restore it and they pass. Every file in #476 re-scanned for control characters: none left.
Three things from review, all real.

A scripted edit ate the backslash in `.\vice-tay.exe config` in the README
and left a vertical tab there, so copying the line gives "not recognized"
and the diagnostic step can't be run from the docs. One byte. I didn't
re-read the file after editing it with a script, which is how it got out.
Checked every other file I touched the same way: this was the only one.

`a_switch_set_by_hand_is_kept_and_the_start_says_so` didn't check that. It
asserted on the plan's own "left unset" line, which gets printed whether the
switch is set or not, so it passed for the wrong reason and would never have
caught the feature going missing. `config` now prints the kept and lowered
lines too - which it should have from the start, since that's the whole
question on a PC where the launcher and the profile both have an opinion -
and the tests assert the real lines, including the negative case. Removing
the printing makes all three fail.

And the card-buffer floor stays. Dropping `VICE_TAY_CARD_BUFFERS_MIN_KB` on a
small card was a reading of #446, not a measurement. It's been measured now:
on the prison cinematic at 4K, dropping it took the rendered rate from 6.2
fps to 2.2 and the worst frame from 721 ms to 1,482 (three 90 s runs, RTX
4090). That's a 24 GB card rather than a 4 GB one, so it doesn't settle #446
either way - but it's the only number anyone has, and it says the floor earns
its keep. The profile names the switch in its notes instead, and what bounds
those copies on a small card is their total, which play already caps at
256 MB under 8 GB.

Co-Authored-By: Claude <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-30 20:37:35 +00:00
Author
Owner

@⁠chatgpt-codex-connector[bot] on GitHub · 2026-11-30 20:32 UTC · original

Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-30T20:32:38.198185Z
We couldn’t complete this review. Comment @codex review to try again.
6265cec PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@⁠codex review" or "@⁠codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

**@⁠chatgpt-codex-connector[bot]** on GitHub · 2026-11-30 20:32 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/478#issuecomment-7291092617) <!-- codex-pull-request-review-summary --> <!-- codex-review-state:v1 {"code_review":{"commit_sha":"6265cec27233fab299cbab54dd18aba532135efe","has_any_findings":true,"has_unresolved_findings":true,"status":"failed"},"security_review":{"commit_sha":null,"has_any_findings":null,"has_unresolved_findings":null,"status":null}} --> <details> <summary><strong>Codex Review Summary</strong>: ❌ Failed</summary> This comment shows the latest Codex review activity on this pull request. | Review | Status | Commit | Review trigger | | --- | --- | --- | --- | | 📝 **Code Review** | ❌ **Failed** <relative-time datetime="2026-11-30T20:32:38.198185Z">2026-11-30T20:32:38.198185Z</relative-time><br/>We couldn’t complete this review. Comment `@codex review` to try again. | `6265cec` | PR opened | <details> <summary>ℹ️ About Codex in GitHub</summary> <br/> [Your team has set up Codex to review pull requests in this repo](https://chatgpt.com/codex/cloud/settings/general). Reviews are triggered when you - Open a pull request for review - Mark a draft as ready - Comment "@⁠codex review" or "@⁠codex security review". Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. </details> </details>
Author
Owner

@⁠chatgpt-codex-connector[bot] on GitHub · 2026-11-30 20:32 UTC · original

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

**@⁠chatgpt-codex-connector[bot]** on GitHub · 2026-11-30 20:32 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/478#issuecomment-7291093467) You have reached your Codex usage limits for code reviews. You can see your limits in the [Codex usage dashboard](https://chatgpt.com/codex/cloud/settings/usage).
CI caught this one, which is fair: the test asserted that the 8 GB tier wants
four pipeline workers and keeps the launcher's three. How many it wants is
`(processors * 3 / 4).clamp(2, 4)`, so on the four-processor runner it wants
exactly three, there is nothing to report, and the assertion failed. Same
class of problem as the test it was replacing - wording from one machine
instead of the contract.

It now reads the count the plan named and checks the contract either way:
agree and nothing is reported, differ and three is kept with the plan's
number mentioned, and three is never treated as too big for the PC. The
"never raised" property over every tier is already pinned in the core
module's own test, where the processor count is a parameter.

Co-Authored-By: Claude <[email protected]>
Second try at the same test. The filter was "line contains
VICE_TAY_PIPELINE_WORKERS=3 " with a trailing space, which also matches the
plan's own line, `NAME=VALUE (reason)`. So on the four-processor runner,
where the tier wants exactly three and there is nothing to report, the plan
line was counted as a report and the assertion failed.

It now matches on the phrases the report lines actually use - "is kept" and
"launcher's default" - so the plan line can't be mistaken for one.

Co-Authored-By: Claude <[email protected]>
github manually merged commit 206e07b451 into main 2026-11-30 20:54:07 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.