Fill table constant buffers that flights write on the card #522

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

@⁠pug205gti6 on GitHub · 2026-11-25 01:58 UTC · original
pug205gti6:pr/462-gpu-fill-table → main · +192 −0 · 2 files · 1 commits · open

A table's constant buffer view whose title memory a flight in the air may write is filled into upload memory at submission, which makes the submission wait for the flight to land: in the world, one such buffer a frame (480-512 bytes) cost a wait of 52-80 ms. With VICTORY_FILL_ON_CARD (on by default; 0 fills as before) the list copies those bytes from the host copy on the card, behind the flight on the same queue, into a device-local buffer of its own, and binds that instead. The first fills that still wait are logged with their source.

**@⁠pug205gti6** on GitHub · 2026-11-25 01:58 UTC · [original](https://github.com/fxceless/victory-fork/pull/522) `pug205gti6:pr/462-gpu-fill-table` → `main` · +192 −0 · 2 files · 1 commits · open A table's constant buffer view whose title memory a flight in the air may write is filled into upload memory at submission, which makes the submission wait for the flight to land: in the world, one such buffer a frame (480-512 bytes) cost a wait of 52-80 ms. With VICTORY_FILL_ON_CARD (on by default; 0 fills as before) the list copies those bytes from the host copy on the card, behind the flight on the same queue, into a device-local buffer of its own, and binds that instead. The first fills that still wait are logged with their source.
A table's constant buffer view whose title memory a flight in the air may
write is filled into upload memory at submission, which makes the
submission wait for the flight to land: in the world, one such buffer a
frame (480-512 bytes) cost a wait of 52-80 ms. With VICTORY_FILL_ON_CARD
(on by default; 0 fills as before) the list copies those bytes from the
host copy on the card, behind the flight on the same queue, into a
device-local buffer of its own, and binds that instead. The first fills
that still wait are logged with their source.

Co-authored-by: OpenBot <335604065+openbotgit[bot]@users.noreply.github.com>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:45:19 +00:00
Author
Owner

@⁠iurysf on GitHub · 2026-11-25 02:02 UTC · original

For whoever reviews this: it is the same commit as #462 (b39d4aa), where the description has the paired measurement on an RTX 4070 (−35.4 ms a frame, 4 of 4 pairs), the image comparison between the two arms and the card test. Either one can be merged; one of the two can be closed.

AI-assisted.

**@⁠iurysf** on GitHub · 2026-11-25 02:02 UTC · [original](https://github.com/fxceless/victory-fork/pull/522#issuecomment-7150252739) For whoever reviews this: it is the same commit as #462 (`b39d4aa`), where the description has the paired measurement on an RTX 4070 (−35.4 ms a frame, 4 of 4 pairs), the image comparison between the two arms and the card test. Either one can be merged; one of the two can be closed. AI-assisted.
Author
Owner

@⁠Revens2 on GitHub · 2026-11-25 07:36 UTC · original

Duplicate of #462: @⁠iurysf opened this patch 45 minutes earlier, and gh pr diff returns the same bytes for both (+192/-0 on 2 file(s), same title).

Please continue in #462 so the review history and any test data stay in one place.
Thanks.

**@⁠Revens2** on GitHub · 2026-11-25 07:36 UTC · [original](https://github.com/fxceless/victory-fork/pull/522#issuecomment-7156054401) Duplicate of #462: @⁠iurysf opened this patch 45 minutes earlier, and `gh pr diff` returns the same bytes for both (+192/-0 on 2 file(s), same title). Please continue in #462 so the review history and any test data stay in one place. Thanks.
Author
Owner

@⁠Headache3318 on GitHub · 2026-11-25 08:13 UTC · original

Independent verification: PR #522 merges cleanly onto main, no conflicts. Build: success (8.27s). Tests: fail on Linux due to pre-existing host/target mismatch — #[cfg(windows)] modules excluded on Linux host, causing unresolved crate/module errors in victory-loader and victory-gpu. Same errors on unmodified main. PR modifies crates/victory-gpu/src/draw.rs (+12) and host.rs (+180). Machine: Arch Linux, kernel 7.3.5-arch1-1, 3x RTX 4090 driver 620.73.04, Proton, AI-assisted.

**@⁠Headache3318** on GitHub · 2026-11-25 08:13 UTC · [original](https://github.com/fxceless/victory-fork/pull/522#issuecomment-7156753749) Independent verification: PR #522 merges cleanly onto main, no conflicts. Build: success (8.27s). Tests: fail on Linux due to pre-existing host/target mismatch — #[cfg(windows)] modules excluded on Linux host, causing unresolved crate/module errors in victory-loader and victory-gpu. Same errors on unmodified main. PR modifies crates/victory-gpu/src/draw.rs (+12) and host.rs (+180). Machine: Arch Linux, kernel 7.3.5-arch1-1, 3x RTX 4090 driver 620.73.04, Proton, AI-assisted.
This pull request has changes conflicting with the target branch.
  • crates/victory-gpu/src/host.rs
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

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

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-522'
git switch 'github-bot/gh-522'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-522'
git switch 'github-bot/gh-522'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-522'
git switch 'main'
git merge --squash 'github-bot/gh-522'
git switch 'main'
git merge --ff-only 'github-bot/gh-522'
git switch 'main'
git merge 'github-bot/gh-522'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.