[Testers Needed] Experimental RTX 4060 / 16 GB RAM & CPU submission/readback optimizations #244

Closed
github-bot wants to merge 534 commits from github-bot/gh-244 into main AGit
Owner

@⁠swam122yam-glitch on GitHub · 2026-11-27 11:54 UTC · original
swam122yam-glitch:exp/perf-4060-16gb → main · +44349 −3959 · 184 files · 534 commits · closed without merging

Important

Testers Needed (Experimental Branch / Draft PR):
This PR is opened as a Draft for community testing and A/B benchmarking with a local game build. All workspace Clippy checks and unit/integration tests pass, but live gameplay FPS, frame time, memory, and visual verification have not been run yet. Please do not merge until real gameplay benchmarks confirm stability and performance gains.

Target Hardware & Goal

Targeted at 16 GB RAM + 8 GB NVIDIA GPUs (specifically tested for feature support on Ryzen 9 7900X + RTX 4060 8 GB + 16 GB DDR5, Windows 11), while keeping Vice-Tay's NVIDIA wave32, descriptor reclamation, and 16 GB working-set protections intact.

Summary of Changes (swam122yam-glitch:exp/perf-4060-16gb)

  1. 8e66eca — preset: add -Machine 4060 for Ryzen 9 7900X + RTX 4060 8GB + 16GB RAM (scripts/play.ps1)
    • Keeps laptop 16 GB RAM safeguards (VICTORY_DSTORAGE_IO=direct, VICTORY_INPLACE=2, VICTORY_WORKING_SET_MB, VICTORY_LEVELS_ON_DEMAND=1).
    • Adjusts VRAM budgets (VICTORY_WINDOWS_BAR_MB=3584, VICTORY_CARD_BUFFERS_MB=512, VICTORY_CARD_RESERVE_BUDGETS=1) and worker counts (THIN=10, UNDER=6, LAND=6, MAP=1, PIPELINE_WORKERS=4).
    • Enables VICTORY_PORT_GUARD=1, VICTORY_PORT_JOURNAL=1, VICTORY_ASK_SPREAD=1, VICTORY_SYNC_FINE=1 outside -Safe.
  2. 242a5d8 — perf(descriptor): port DynamicBits, release_dynamic_many, slot_state, and null templates (descriptor/host.rs, descriptor.rs, draw.rs)
    • Replaces Vec<bool> dynamic slot scans with L1-resident DynamicBits (u64 bitset), batches release_dynamic_many per (heap, id) while preserving HostHeap::id validation and NVIDIA flight reclamation, caches slot_state (null_kind / has_kept), and prebuilds CPU null descriptor templates.
  3. 2363a53 — perf(texback): port parallel land_many, range dedup, narrowed TICKETS lock, and flight borrow (texback.rs, host.rs)
    • Deduplicates identical (at, end) texture readbacks, tiles disjoint readbacks in parallel via land::each_view, narrows TICKETS lock around final validation + copy, and borrows flight texture_backs via read_flight_backs.
  4. 31c92a5 — perf(watch,shadow,host): port SHARD_SHIFT=6, coalesced unguard, single-pass ask_once, 256K WIDE_JOB, Batch::last_ahead (watch.rs, shadow.rs, host.rs)
    • Uses 4 MiB journal shards (SHARD_SHIFT=6), coalesces contiguous unguard VirtualProtect calls, performs single-pass ask_once (ask_run_all, preserving ahead_mapping / kept_after_raw), lowers WIDE_JOB to 256 KiB and WIDE_PLAN_STEPS to 1024, and adds Batch::last_ahead.
  5. 464f30f — docs: add exp/perf-4060-16gb testing guide and link Issue #1 (README.md)

Verification Completed So Far

  • cargo clippy --workspace --all-targets --locked -- -D warnings (default & --all-features): Passed (0 warnings)
  • cargo test --workspace --locked -- --test-threads=1 (default & --all-features): Passed (0 failures)
  • cargo build --locked --profile diag -p victory --features diagnostics & --release: Built cleanly

How Testers Can Help (A/B Benchmark Request)

Please compare main (-Machine laptop or -Machine 4070/4090) vs this PR branch (-Machine 4060 or your matching preset) on the same scene/route and warmed shader/pipeline cache:

  1. Run .\scripts\play.ps1 -Exe '<path-to-game.exe>' -Console series-s -Machine 4060
  2. Share .\scripts\measure-frames.ps1 output (Median FPS, P10, 1% low, Median/P95/P99 ms/frame), preparing / copying back breakdown, peak private RAM, DXGI VRAM usage, and any visual/stability notes.
  3. Tracking issue on fork: https://github.com/swam122yam-glitch/Vice-Tay/issues/1
**@⁠swam122yam-glitch** on GitHub · 2026-11-27 11:54 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/244) `swam122yam-glitch:exp/perf-4060-16gb` → `main` · +44349 −3959 · 184 files · 534 commits · closed without merging > [!IMPORTANT] > **Testers Needed (Experimental Branch / Draft PR):** > This PR is opened as a **Draft** for community testing and A/B benchmarking with a local game build. All workspace Clippy checks and unit/integration tests pass, **but live gameplay FPS, frame time, memory, and visual verification have not been run yet**. Please do not merge until real gameplay benchmarks confirm stability and performance gains. ### Target Hardware & Goal Targeted at **16 GB RAM + 8 GB NVIDIA GPUs** (specifically tested for feature support on **Ryzen 9 7900X + RTX 4060 8 GB + 16 GB DDR5**, Windows 11), while keeping `Vice-Tay`'s NVIDIA wave32, descriptor reclamation, and 16 GB working-set protections intact. ### Summary of Changes (`swam122yam-glitch:exp/perf-4060-16gb`) 1. **`8e66eca` — `preset: add -Machine 4060 for Ryzen 9 7900X + RTX 4060 8GB + 16GB RAM`** (`scripts/play.ps1`) - Keeps `laptop` 16 GB RAM safeguards (`VICTORY_DSTORAGE_IO=direct`, `VICTORY_INPLACE=2`, `VICTORY_WORKING_SET_MB`, `VICTORY_LEVELS_ON_DEMAND=1`). - Adjusts VRAM budgets (`VICTORY_WINDOWS_BAR_MB=3584`, `VICTORY_CARD_BUFFERS_MB=512`, `VICTORY_CARD_RESERVE_BUDGETS=1`) and worker counts (`THIN=10`, `UNDER=6`, `LAND=6`, `MAP=1`, `PIPELINE_WORKERS=4`). - Enables `VICTORY_PORT_GUARD=1`, `VICTORY_PORT_JOURNAL=1`, `VICTORY_ASK_SPREAD=1`, `VICTORY_SYNC_FINE=1` outside `-Safe`. 2. **`242a5d8` — `perf(descriptor): port DynamicBits, release_dynamic_many, slot_state, and null templates`** (`descriptor/host.rs`, `descriptor.rs`, `draw.rs`) - Replaces `Vec<bool>` dynamic slot scans with L1-resident `DynamicBits` (`u64` bitset), batches `release_dynamic_many` per `(heap, id)` while preserving `HostHeap::id` validation and NVIDIA flight reclamation, caches `slot_state` (`null_kind` / `has_kept`), and prebuilds CPU null descriptor templates. 3. **`2363a53` — `perf(texback): port parallel land_many, range dedup, narrowed TICKETS lock, and flight borrow`** (`texback.rs`, `host.rs`) - Deduplicates identical `(at, end)` texture readbacks, tiles disjoint readbacks in parallel via `land::each_view`, narrows `TICKETS` lock around final validation + copy, and borrows flight `texture_backs` via `read_flight_backs`. 4. **`31c92a5` — `perf(watch,shadow,host): port SHARD_SHIFT=6, coalesced unguard, single-pass ask_once, 256K WIDE_JOB, Batch::last_ahead`** (`watch.rs`, `shadow.rs`, `host.rs`) - Uses 4 MiB journal shards (`SHARD_SHIFT=6`), coalesces contiguous `unguard` `VirtualProtect` calls, performs single-pass `ask_once` (`ask_run_all`, preserving `ahead_mapping` / `kept_after_raw`), lowers `WIDE_JOB` to `256 KiB` and `WIDE_PLAN_STEPS` to `1024`, and adds `Batch::last_ahead`. 5. **`464f30f` — `docs: add exp/perf-4060-16gb testing guide and link Issue #1`** (`README.md`) ### Verification Completed So Far - `cargo clippy --workspace --all-targets --locked -- -D warnings` (default & `--all-features`): **Passed (0 warnings)** - `cargo test --workspace --locked -- --test-threads=1` (default & `--all-features`): **Passed (0 failures)** - `cargo build --locked --profile diag -p victory --features diagnostics` & `--release`: **Built cleanly** ### How Testers Can Help (A/B Benchmark Request) Please compare `main` (`-Machine laptop` or `-Machine 4070`/`4090`) vs this PR branch (`-Machine 4060` or your matching preset) on the **same scene/route and warmed shader/pipeline cache**: 1. Run `.\scripts\play.ps1 -Exe '<path-to-game.exe>' -Console series-s -Machine 4060` 2. Share `.\scripts\measure-frames.ps1` output (**Median FPS**, **P10**, **1% low**, **Median/P95/P99 ms/frame**), `preparing` / `copying back` breakdown, peak private RAM, DXGI VRAM usage, and any visual/stability notes. 3. Tracking issue on fork: https://github.com/swam122yam-glitch/Vice-Tay/issues/1
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 11:56:48 +00:00
Author
Owner

@⁠TaynanGT on GitHub · 2026-11-27 11:58 UTC · original

@⁠swam122yam-glitch For the first A/B, keep the effective launch settings identical on both revisions. Compare the new 4060 preset as a second pair on this branch. That way a change in the memory budget or worker count won't be counted as a code speedup. On the 16 GB machine, record rendered frame times, peak private bytes, shared GPU memory and the same indoor and boat shots. The draft state fits the current evidence.

**@⁠TaynanGT** on GitHub · 2026-11-27 11:58 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/244#issuecomment-7217685102) @⁠swam122yam-glitch For the first A/B, keep the effective launch settings identical on both revisions. Compare the new 4060 preset as a second pair on this branch. That way a change in the memory budget or worker count won't be counted as a code speedup. On the 16 GB machine, record rendered frame times, peak private bytes, shared GPU memory and the same indoor and boat shots. The draft state fits the current evidence.
Author
Owner

@⁠swam122yam-glitch on GitHub · 2026-11-27 12:00 UTC · original

Agreed—keeping the first A/B pair on identical launch settings (-Machine laptop on both main and exp/perf-4060-16gb) cleanly isolates the code changes from the -Machine 4060 preset tuning.

Updated the test plan in README.md (exp/perf-4060-16gb) and our tracking issue (https://github.com/swam122yam-glitch/Vice-Tay/issues/1) to split into:

  1. Pair 1 (Code isolation): main (-Machine laptop) vs exp/perf-4060-16gb (-Machine laptop)
  2. Pair 2 (Preset isolation): exp/perf-4060-16gb (-Machine laptop) vs exp/perf-4060-16gb (-Machine 4060)

Both pairs will record rendered frame times, peak private bytes, shared GPU memory, and matched indoor + boat shots.

**@⁠swam122yam-glitch** on GitHub · 2026-11-27 12:00 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/244#issuecomment-7217728704) Agreed—keeping the first A/B pair on identical launch settings (`-Machine laptop` on both `main` and `exp/perf-4060-16gb`) cleanly isolates the code changes from the `-Machine 4060` preset tuning. Updated the test plan in `README.md` (`exp/perf-4060-16gb`) and our tracking issue (https://github.com/swam122yam-glitch/Vice-Tay/issues/1) to split into: 1. **Pair 1 (Code isolation):** `main` (`-Machine laptop`) vs `exp/perf-4060-16gb` (`-Machine laptop`) 2. **Pair 2 (Preset isolation):** `exp/perf-4060-16gb` (`-Machine laptop`) vs `exp/perf-4060-16gb` (`-Machine 4060`) Both pairs will record rendered frame times, peak private bytes, shared GPU memory, and matched indoor + boat shots.
Author
Owner

@⁠TaynanGT on GitHub · 2026-11-27 12:03 UTC · original

@⁠swam122yam-glitch That split gives us a code comparison and a preset comparison. Please keep the report keyed to the two exact revisions and include the interval and sample count for both indoor and boat sections. That will let us compare the frame times against the memory changes on the 16 GB machine.

**@⁠TaynanGT** on GitHub · 2026-11-27 12:03 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/244#issuecomment-7217789757) @⁠swam122yam-glitch That split gives us a code comparison and a preset comparison. Please keep the report keyed to the two exact revisions and include the interval and sample count for both indoor and boat sections. That will let us compare the frame times against the memory changes on the 16 GB machine.
Author
Owner

@⁠swam122yam-glitch on GitHub · 2026-11-27 12:06 UTC · original

Will do—we'll key every Pair 1 and Pair 2 report to the exact two git revisions (plus the victory.exe SHA-256 printed by scripts/play.ps1) and include the exact -From/-Until time intervals and Samples count from scripts/measure-frames.ps1 for both the indoor and boat sections, alongside peak private bytes and shared GPU memory.

We also added scripts/ab-bench.ps1 and a pre-built artifact workflow (.github/workflows/build-artifacts.yml) on exp/perf-4060-16gb (1be7cb3) so any 16 GB / 8 GB testers can reproduce the same two-pair log format easily.

**@⁠swam122yam-glitch** on GitHub · 2026-11-27 12:06 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/244#issuecomment-7217844523) Will do—we'll key every Pair 1 and Pair 2 report to the exact two git revisions (plus the `victory.exe` SHA-256 printed by `scripts/play.ps1`) and include the exact `-From`/`-Until` time intervals and `Samples` count from `scripts/measure-frames.ps1` for both the indoor and boat sections, alongside peak private bytes and shared GPU memory. We also added `scripts/ab-bench.ps1` and a pre-built artifact workflow (`.github/workflows/build-artifacts.yml`) on `exp/perf-4060-16gb` (`1be7cb3`) so any 16 GB / 8 GB testers can reproduce the same two-pair log format easily.
Author
Owner

@⁠TaynanGT on GitHub · 2026-11-27 12:08 UTC · original

@⁠swam122yam-glitch The executable hash and exact sample window will pin down each pair. I checked that the new workflow uploads the diagnostics and release executables separately. Include the artifact run and profile in the report so each set of numbers follows the executable that produced it.

**@⁠TaynanGT** on GitHub · 2026-11-27 12:08 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/244#issuecomment-7217889237) @⁠swam122yam-glitch The executable hash and exact sample window will pin down each pair. I checked that the new workflow uploads the diagnostics and release executables separately. Include the artifact run and profile in the report so each set of numbers follows the executable that produced it.
Author
Owner

@⁠swam122yam-glitch on GitHub · 2026-11-27 12:10 UTC · original

Sounds good—for every reported Pair 1 and Pair 2 run we will include the exact GitHub Actions artifact run link (or local build commit), the build profile (diag vs release), the victory.exe SHA-256, and the exact -From/-Until sample windows and sample counts for both indoor and boat sections.

**@⁠swam122yam-glitch** on GitHub · 2026-11-27 12:10 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/244#issuecomment-7217921464) Sounds good—for every reported Pair 1 and Pair 2 run we will include the exact GitHub Actions artifact run link (or local build commit), the build profile (`diag` vs `release`), the `victory.exe` SHA-256, and the exact `-From`/`-Until` sample windows and sample counts for both indoor and boat sections.
Author
Owner

@⁠TaynanGT on GitHub · 2026-11-27 12:13 UTC · original

@⁠swam122yam-glitch That’s enough to tie each interval to its binary. Both pairs now have a reproducible reporting format.

**@⁠TaynanGT** on GitHub · 2026-11-27 12:13 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/244#issuecomment-7217987666) @⁠swam122yam-glitch That’s enough to tie each interval to its binary. Both pairs now have a reproducible reporting format.
github-bot closed this pull request 2026-11-30 17:20:58 +00:00
Author
Owner

@⁠TaynanGT on GitHub · 2026-11-30 17:15 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:15 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/244#issuecomment-7285968377) `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.