Repository navigation
Fill table constant buffers that flights write on the card - #522
pug205gti6 wants to merge 1 commit into
Conversation
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>
|
For whoever reviews this: it is the same commit as #462 ( AI-assisted. |
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> (cherry picked from commit b39d4aa) fxceless#522 (iurysf). Conflict in draw.rs: main's table CBV arm now skips null views (address != 0) and stages at most constant_staging_bytes; the on-card arm takes both. The host copy's refresh goes through Shadow::update, which leaves handed ranges alone, and the on-card read is queued behind any copy between host copies. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017V7WBA8CxPD68KngjiMeJb
|
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. |
…d them (as fxceless#522's table ones); VICTORY_SETTLE_DIAG=1 names the fills and buffer copies that still settle
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.