Repository navigation
GPU: a window that is one run of a section's pages goes in place through our own view (VICTORY_STRETCH=1) - #1127
Conversation
…ugh our own view (VICTORY_STRETCH=1) The title maps its streaming heaps one 64 KiB view at a time, each view an allocation of its own, so they cannot be opened as a host heap and every window on them is a copy, refreshed and copied back. The pages of such a heap follow one another in their section, though: with VICTORY_STRETCH=1 a window whose memory is one run of one section (inplace::Cover::Run) is opened as a heap through the view of our own on that section (the one VICTORY_BACK_OWN_VIEW maps; the mapping is now one helper, own_view), with the blocks committed through it, and the window is a buffer placed there. Off by default. The idea is VICTORY_STRETCH of Belobug/VIctory-Belobug-AMD (0434b3a). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…VICTORY_STRETCH=1, fxceless#1127) fxceless#1127 (FrancescoGelosoEterea), after Belobug's VICTORY_STRETCH: a window that is one run of a section's pages is opened in place through our own view of the section; anything it cannot open is copied as before. Off by default, and then the run is not even looked for. Tested as 9b08008: victory-gpu library suite three runs clean (201 passed, 5 ignored). Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
|
I tested the Address1 path from
The fixture used generated bytes only. Test and report prepared with assistance from OpenAI Codex. |
…section's pages goes in place through our own view (VICTORY_STRETCH=1) (by FrancescoGelosoEterea) Changed in porting: this tree has no OWN table of views nor write_own; its own view of a whole section is the one inplace::beside makes and keeps (Views::whole), so place_stretch asks beside for the address of the run in it. The PR's commit of each 64 KiB block through our view is left out: the runtime here commits a page before it shows it, for every view of the section, which beside already relies on (a page that were not committed would have the host refuse the heap, and a copy is made). place_for and the line of what is in place are as in the PR. VICTORY_STRETCH=1 turns it on; off by default. Not run. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The title maps its streaming heaps one 64 KiB view at a time, and each view is an allocation of its own. So
place_partcannot open them, andlevel()turns view memory down: those windows are copied, refreshed and copied back. Their pages do follow one another in their section, though. This PR opens such a window through a view of our own on the whole section, the same viewVICTORY_BACK_OWN_VIEWmaps:place_foraskscover(). When a window is oneCover::Run(section, offset), it goes to the newplace_stretch.place_stretchrounds the window out to 64 KiB pages and checks that the rounded range is still the same run. It then commits those blocks through our view and opens the heap there withOpenExistingHeapFromAddress1. The shaders read and write the title's bytes directly: no copy, no refresh, no copy-back.own_view()is pulled out ofwrite_own, so both switches share one mapping per section. Theinplacestats line also counts windows placed this way and the ones turned down.The idea is
VICTORY_STRETCHfrom Belobug/VIctory-Belobug-AMD (0434b3a), credit to them. There it works inshadow.rswith a separateMapViewOfFileper stretch. This port reuses the in-place module (cover(),OWN,Placed) instead. It is off by default.Tested
RTX 5070 Ti (16 GB, driver 621.24), Windows 11, a save past the prologue. Three ~7-minute runs in the world, on main 465b94f plus #854 and #834. Every run used the same switches:
WIDE_BACK,CARD_BUFFERS_MB=1024,INDIRECT_WINDOW,ASYNC_SUBMIT,QUEUE2,LEVELS_ON_DEMAND,JOIN_PARTS,BACK_OWN_VIEW,INDIRECT_GATHER,CARD_REHASH_RUNSandCOPY_PLAIN.VICTORY_STRETCH=1VICTORY_STRETCH=1againBACK_OWN_VIEWandWIDE_BACKon, copy-back is already about 17 ms a frame, against the 36 ms Belobug started from.STRETCH=1runs ended in a device loss (0x887A0006, about 10 minutes in). Two of four runs without it had the same loss on this merge, so it does not look tied to this switch.Not tested: together with
VICTORY_WINDOW_UPLOADfrom 79cfdd9. This branch is rebased on 085ee7c (clean cherry-pick, no clippy warning ininplace.rs, 182 of 183 unit tests pass; the one failure,indirect::tests::warp_budget_saturates_without_wraparound_and_preserves_draw_fields, fails the same way on 085ee7c without this commit)🤖 Generated with Claude Code