Preload window: strip the log's colour codes before reading a line #2773

Open
github-bot wants to merge 1 commit from github-bot/gh-2773 into main AGit
Owner

@⁠FactorOfTheThird on GitHub · 2026-11-29 17:08 UTC · original
FactorOfTheThird:fix/preload-window-colour-codes → main · +2 −1 · 1 files · 1 commits · open

The preload window's last line (the log tail under the progress bar) showed the log's colour codes as text, e.g. ⌐[2m2026-11-29T17:03:53Z⌐[0m ⌐[32m INFO⌐[0m ⌐[2mvictory_gpu::pipeline⌐[0m.... Because the codes stand before the timestamp, the existing ^\S+Z\s+(TRACE|...) strip never matched either, so the time and level stayed in.

Update-PreloadWindow now removes ESC [ ... <letter> sequences before it reads the line, so the progress patterns and the time/level strip see plain text.

How it was tested

  • GPU and profile (Series X or S, resolution, DLSS, frame generation, ray tracing): RTX 3060 12 GB, Series S, 1080 to 1440, DLSS Performance, no frame generation; the bug seen in the window during a -Preload run.
  • The replacement checked in Windows PowerShell 5.1 on a sample tracing line with its colour codes: it gives victory_gpu::pipeline: shader translated. Then seen in the live window during a -Preload (RTX 3060): victory_gpu::pipeline: shader translated stage="mesh" hash=... user_data=3 samplers=0 ms=0, no codes, no time or level.
  • For shader changes, the wave sizes tested (32 and/or 64 lanes): n/a
  • cargo test passed for the crates it touches: n/a (PowerShell only). cargo xtask policy reports the existing hit in crates/victory-loader/src/heap_sites/frame_users.rs, the same on main.
  • I searched the open pull requests for the same issue and for the files this touches. Related: #2458 (same file, the shader step's percentage; no overlap)

🤖 Generated with Claude Code

**@⁠FactorOfTheThird** on GitHub · 2026-11-29 17:08 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2773) `FactorOfTheThird:fix/preload-window-colour-codes` → `main` · +2 −1 · 1 files · 1 commits · open The preload window's last line (the log tail under the progress bar) showed the log's colour codes as text, e.g. `⌐[2m2026-11-29T17:03:53Z⌐[0m ⌐[32m INFO⌐[0m ⌐[2mvictory_gpu::pipeline⌐[0m...`. Because the codes stand before the timestamp, the existing `^\S+Z\s+(TRACE|...)` strip never matched either, so the time and level stayed in. `Update-PreloadWindow` now removes `ESC [ ... <letter>` sequences before it reads the line, so the progress patterns and the time/level strip see plain text. ## How it was tested - GPU and profile (Series X or S, resolution, DLSS, frame generation, ray tracing): RTX 3060 12 GB, Series S, 1080 to 1440, DLSS Performance, no frame generation; the bug seen in the window during a `-Preload` run. - The replacement checked in Windows PowerShell 5.1 on a sample tracing line with its colour codes: it gives `victory_gpu::pipeline: shader translated`. Then seen in the live window during a `-Preload` (RTX 3060): `victory_gpu::pipeline: shader translated stage="mesh" hash=... user_data=3 samplers=0 ms=0`, no codes, no time or level. - For shader changes, the wave sizes tested (32 and/or 64 lanes): n/a - `cargo test` passed for the crates it touches: n/a (PowerShell only). `cargo xtask policy` reports the existing hit in `crates/victory-loader/src/heap_sites/frame_users.rs`, the same on `main`. - [x] I searched the open pull requests for the same issue and for the files this touches. Related: #2458 (same file, the shader step's percentage; no overlap) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
The window's last line showed ESC[2m-style codes as text, and the
time/level prefix was left in because the codes stood before it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 17:11:25 +00:00
Author
Owner

@⁠FactorOfTheThird on GitHub · 2026-11-29 18:01 UTC · original

Updated the testing notes: the change is now confirmed in a live preload window (RTX 3060), where a tracing line shows as victory_gpu::pipeline: shader translated ... with no colour codes and no time/level prefix.

**@⁠FactorOfTheThird** on GitHub · 2026-11-29 18:01 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2773#issuecomment-7260151646) Updated the testing notes: the change is now confirmed in a live preload window (RTX 3060), where a tracing line shows as `victory_gpu::pipeline: shader translated ...` with no colour codes and no time/level prefix.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/2773/head:github-bot/gh-2773'
git switch 'github-bot/gh-2773'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2773'
git switch 'github-bot/gh-2773'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2773'
git switch 'github-bot/gh-2773'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2773'
git switch 'main'
git merge --squash 'github-bot/gh-2773'
git switch 'main'
git merge --ff-only 'github-bot/gh-2773'
git switch 'main'
git merge 'github-bot/gh-2773'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!2773
No description provided.