Title memory by address: pages in arenas, structures' pages made ready ahead
Windows of title memory around every page took 8 GB (run light-2, 0.5-1 s a frame): structures are streamed in anywhere between other data. A 64 KiB page outside title buffers now has a page of its own in an arena on the card; only the title's GPU memory is taken; what instances in a list's upload memory name is there before the top level is built, 1 MiB from each root view before the rehydration stages unpack it in place. VICTORY_MEMORY_DUMP=<folder> writes the arenas out (diagnostics). Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
b558934d7b
commit
bde604e725
4 files changed
+516
-228
No files matched your search
@@ -1030,7 +1030,9 @@ impl State {
|
||||
let (mut addresses, mut constants) = (Vec::new(), Vec::new());
|
||||
for root in self.roots_ref(compute) {
|
||||
match root {
|
||||
Root::View(address) => addresses.push(*address),
|
||||
// (Of a program that only walks structures, the structures'
|
||||
// views below: its root views are constants and tables.)
|
||||
Root::View(address) if use_ != crate::memory::Use::Reads => addresses.push(*address),
|
||||
Root::Constants(values) => constants.extend_from_slice(values),
|
||||
_ => {}
|
||||
}
|
||||
@@ -1237,10 +1239,8 @@ impl State {
|
||||
let memory = if t.host.root_srvs.contains(&victory_shader::emit::SLOT_MEMORY) {
|
||||
// Only through a store by address: what it stores through
|
||||
// views is declared with them.
|
||||
let use_ = if crate::pipeline::is_builder(self.pipeline as This) {
|
||||
crate::memory::Use::Builder { back: writes }
|
||||
} else if writes && t.stores_by_address {
|
||||
crate::memory::Use::Writes
|
||||
let use_ = if crate::pipeline::is_builder(self.pipeline as This) || writes && t.stores_by_address {
|
||||
crate::memory::Use::Builds { back: writes }
|
||||
} else {
|
||||
crate::memory::Use::Reads
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user