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

Open
pug205gti6 wants to merge 1 commit from upstream-pr/522 into main
pug205gti6 commented 2026-11-25 01:58:36 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by pug205gti6 on 2026-11-25T01:58:36Z.


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.

<!-- greyfinch-sync:fxceless/victory-fork:issue:6595387505 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/522). Originally posted by [pug205gti6](https://github.com/pug205gti6) on 2026-11-25T01:58:36Z. --- 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.
iurysf commented 2026-11-25 02:10:14 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by iurysf on 2026-11-25T02:02:44Z.


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.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7150252739 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/522#issuecomment-7150252739). Originally posted by [iurysf](https://github.com/iurysf) on 2026-11-25T02:02:44Z. --- 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.
Revens2 commented 2026-11-25 08:09:01 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by Revens2 on 2026-11-25T07:36:39Z.


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.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7156054401 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/522#issuecomment-7156054401). Originally posted by [Revens2](https://github.com/Revens2) on 2026-11-25T07:36:39Z. --- 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.
Headache3318 commented 2026-11-25 09:08:48 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by Headache3318 on 2026-11-25T08:13:00Z.


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.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7156753749 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/522#issuecomment-7156753749). Originally posted by [Headache3318](https://github.com/Headache3318) on 2026-11-25T08:13:00Z. --- 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 cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/522:upstream-pr/522'
git switch 'upstream-pr/522'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/522'
git switch 'upstream-pr/522'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/522'
git switch 'upstream-pr/522'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/522'
git switch 'main'
git merge --squash 'upstream-pr/522'
git switch 'main'
git merge --ff-only 'upstream-pr/522'
git switch 'main'
git merge 'upstream-pr/522'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
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.

Reference
fxceless/victory-fork!522
No description provided.