Avoid temporary submission-output clones #3673

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

@⁠masteraapjes on GitHub · 2026-11-30 03:31 UTC · original
masteraapjes:codex/submission-output-collection → main · +8 −4 · 1 files · 1 commits · open

What it changes

Published and ordinary late submissions collect texture-back ranges and writes in separate traversals, locking each Deferred twice and cloning nonempty write vectors before flattening them. Collect both outputs under one per-list guard and append writes from the source slice. Preserve recordings, duplicates, list order and repeated submissions.

Rebuilt independently on upstream main 5fabb46eaf6ed8771321787f8871051abde69b9b to resolve the conflict after upstream history changed. Obsolete shared CI commits have been removed from the PR diff. Current upstream changes are retained.

How it was tested

Windows, pinned Rust 1.98.1. Tested head: f333157c4f207b7d91d07e838323a343562a2672.

  • cargo test --locked -p victory-gpu --lib host::written_spans_tests:: -- --test-threads=1: 3 passed.
  • cargo test --locked -p victory-gpu --lib picked::tests:: -- --test-threads=1: 2 passed.
  • cargo test --locked -p victory-gpu --lib host::prelude_tests:: -- --test-threads=1: 1 passed.
  • Both scoped strict GPU Clippy commands ran and stopped solely on the five unchanged upstream errors listed below:
    • cargo clippy --locked -p victory-gpu --all-targets -- -D warnings
    • cargo clippy --locked -p victory-gpu --all-targets --all-features -- -D warnings
  • cargo run --locked --package xtask -- policy: 464 files passed. git diff --check passed.

Current upstream CI blocker, independently reproduced on unmodified main 5fabb46e: both cargo clippy --workspace --all-targets --locked -- -D warnings and cargo clippy --workspace --all-targets --all-features --locked -- -D warnings exit 101 with five errors in host/font.rs:213/260, host/menu.rs:667 and host/panel.rs:602/668. Existing #4680 addresses these. No unrelated fixes or lint suppressions are carried here. This is not a claim that the latest CI check job passed.

CPU collection model only; its allocation/lock evidence does not establish a gameplay FPS benefit. Full GPU/workspace suites were not rerun. The full workspace test suite was not rerun for this conflict-resolution update. No game data is included.

Checked for overlap

  • Rechecked current main and targeted open-PR searches alongside the earlier overlap review. The prior targeted submission/deferred-output search inspected #3524, #3109, #2647, #2587, #1556, #2656, #3482, #3395, #614 and #3488; none supplied these collection hunks.
**@⁠masteraapjes** on GitHub · 2026-11-30 03:31 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3673) `masteraapjes:codex/submission-output-collection` → `main` · +8 −4 · 1 files · 1 commits · open ## What it changes Published and ordinary late submissions collect texture-back ranges and writes in separate traversals, locking each Deferred twice and cloning nonempty write vectors before flattening them. Collect both outputs under one per-list guard and append writes from the source slice. Preserve recordings, duplicates, list order and repeated submissions. Rebuilt independently on upstream main `5fabb46eaf6ed8771321787f8871051abde69b9b` to resolve the conflict after upstream history changed. Obsolete shared CI commits have been removed from the PR diff. Current upstream changes are retained. ## How it was tested Windows, pinned Rust 1.98.1. Tested head: `f333157c4f207b7d91d07e838323a343562a2672`. - `cargo test --locked -p victory-gpu --lib host::written_spans_tests:: -- --test-threads=1`: 3 passed. - `cargo test --locked -p victory-gpu --lib picked::tests:: -- --test-threads=1`: 2 passed. - `cargo test --locked -p victory-gpu --lib host::prelude_tests:: -- --test-threads=1`: 1 passed. - Both scoped strict GPU Clippy commands ran and stopped solely on the five unchanged upstream errors listed below: - `cargo clippy --locked -p victory-gpu --all-targets -- -D warnings` - `cargo clippy --locked -p victory-gpu --all-targets --all-features -- -D warnings` - `cargo run --locked --package xtask -- policy`: 464 files passed. `git diff --check` passed. Current upstream CI blocker, independently reproduced on unmodified main `5fabb46e`: both `cargo clippy --workspace --all-targets --locked -- -D warnings` and `cargo clippy --workspace --all-targets --all-features --locked -- -D warnings` exit 101 with five errors in `host/font.rs:213/260`, `host/menu.rs:667` and `host/panel.rs:602/668`. Existing [#4680](https://git.gtahub.st/github/trustno1-coder--VIctory-NVIDIA/pulls/4680) addresses these. No unrelated fixes or lint suppressions are carried here. This is not a claim that the latest CI `check` job passed. CPU collection model only; its allocation/lock evidence does not establish a gameplay FPS benefit. Full GPU/workspace suites were not rerun. The full workspace test suite was not rerun for this conflict-resolution update. No game data is included. ## Checked for overlap - [x] Rechecked current main and targeted open-PR searches alongside the earlier overlap review. The prior targeted submission/deferred-output search inspected #3524, #3109, #2647, #2587, #1556, #2656, #3482, #3395, #614 and #3488; none supplied these collection hunks.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-30 03:37:10 +00:00
Author
Owner

@⁠Trillazill on GitHub · 2026-11-30 05:16 UTC · original

Reviewed against 41adb551, and it looks right to me.

  • Same results: texture_back_ranges and writes each come out in runs order as before. They're filled in one pass per list now, but into separate vectors, so neither order changes. extend_from_slice copies the same (usize, _, _) tuples the old clone() + flat_map did, without the per-list vector in between.
  • One deferred() guard per list is held only across the two extends, with no other lock taken inside, so there's no new lock ordering. It's also a single consistent snapshot of each list's Deferred, where main took two.
  • Those are the only two places with this pattern. host.rs:5248 and :9349/:9359 already read through one guard.
  • Checked at this head (3e2f05a2): cargo clippy --locked -p victory-gpu --all-targets -- -D warnings reports nothing near the changed lines, and cargo test --locked -p victory-gpu --lib -- --test-threads=4 host:: passes 215 (26 ignored).
**@⁠Trillazill** on GitHub · 2026-11-30 05:16 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3673#issuecomment-7269507786) Reviewed against 41adb551, and it looks right to me. - Same results: `texture_back_ranges` and `writes` each come out in `runs` order as before. They're filled in one pass per list now, but into separate vectors, so neither order changes. `extend_from_slice` copies the same `(usize, _, _)` tuples the old `clone()` + `flat_map` did, without the per-list vector in between. - One `deferred()` guard per list is held only across the two extends, with no other lock taken inside, so there's no new lock ordering. It's also a single consistent snapshot of each list's `Deferred`, where main took two. - Those are the only two places with this pattern. `host.rs:5248` and `:9349`/`:9359` already read through one guard. - Checked at this head (3e2f05a2): `cargo clippy --locked -p victory-gpu --all-targets -- -D warnings` reports nothing near the changed lines, and `cargo test --locked -p victory-gpu --lib -- --test-threads=4 host::` passes 215 (26 ignored).
Author
Owner

@⁠dyshay on GitHub · 2026-11-30 05:49 UTC · original

Merged into our fork's integration branch for testing (dyshay/VIctory-NVIDIA, branch janus-prs). I read the full diff first: no network access, process spawning, binaries, build or dependency changes, or game data. It builds with --profile diag --features diagnostics, and the CPU tests of the touched crates pass. A run on an RTX 4090 is queued (Series S with ray tracing, DLSS Quality). Frame times will follow here.

**@⁠dyshay** on GitHub · 2026-11-30 05:49 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3673#issuecomment-7270045685) Merged into our fork's integration branch for testing ([dyshay/VIctory-NVIDIA](https://github.com/dyshay/VIctory-NVIDIA/tree/janus-prs), branch `janus-prs`). I read the full diff first: no network access, process spawning, binaries, build or dependency changes, or game data. It builds with `--profile diag --features diagnostics`, and the CPU tests of the touched crates pass. A run on an RTX 4090 is queued (Series S with ray tracing, DLSS Quality). Frame times will follow here.
(cherry picked from commit d0597eba19)
card_pass took the compare's capture (7addcfc7, VICTORY_LAND_CAPTURE) and
its two test callers still passed five arguments, so the library's tests
did not build. They pass [0; 3], no capture, as the other callers outside
the capture's mode do.

The thin recorder's bindings_record_no_work names every call by what it
records; begin_query and end_query (471d05c4, #3715) record into the query
heap and were in no list. They join the calls that record work.

The shader key's test lists four VICTORY_ORACLE_* names the translator no
longer reads since the differential fuzzer left (a1fe8350); it failed on
the first of them.

(cherry picked from commit d8e409cd45)
github-bot force-pushed github-bot/gh-3673 from e3da182510 to f333157c4f 2026-12-01 13:38:19 +00:00 Compare
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/3673/head:github-bot/gh-3673'
git switch 'github-bot/gh-3673'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-3673'
git switch 'github-bot/gh-3673'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-3673'
git switch 'github-bot/gh-3673'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-3673'
git switch 'main'
git merge --squash 'github-bot/gh-3673'
git switch 'main'
git merge --ff-only 'github-bot/gh-3673'
git switch 'main'
git merge 'github-bot/gh-3673'
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!3673
No description provided.