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
@@ -3587,6 +3587,11 @@ impl Shadow {
|
||||
self.card.is_some()
|
||||
}
|
||||
|
||||
/// Offsets `[from, to)` go up again whole, as the CPU's side has them.
|
||||
pub(crate) fn resend(&self, from: usize, to: usize) {
|
||||
self.card_changed(from, to);
|
||||
}
|
||||
|
||||
/// The CPU side's bytes at offsets `[from, to)` changed: they go to the
|
||||
/// card's side before the next submission.
|
||||
fn card_changed(&self, from: usize, to: usize) {
|
||||
@@ -4566,16 +4571,14 @@ pub(crate) fn in_buffer(address: u64, len: u64) -> Option<(u64, u64)> {
|
||||
found.map(|(k, e)| (k.0, e.end - k.0))
|
||||
}
|
||||
|
||||
/// A copy of the title memory `[start, start + len)` outside buffers for the
|
||||
/// programs that find memory by address ([`crate::memory`]), on the card: the
|
||||
/// structures rays are traced through, read with every step of every ray.
|
||||
/// A copy of the memory `[start, start + len)` (an arena of
|
||||
/// [`crate::memory`]'s, its directory, title memory around a small buffer)
|
||||
/// for the programs that find memory by address, on the card: the structures
|
||||
/// rays are traced through, read with every step of every ray.
|
||||
///
|
||||
/// What shaders write there by address is not brought back to title memory
|
||||
/// (nothing else reads a structure; the first whole run of the builder wrote
|
||||
/// garbage over the title's objects), so the copy is the only place that has
|
||||
/// it. The CPU's side holds the title's bytes as they were last taken, and
|
||||
/// only dwords the title changed since go up: a page the title writes a part
|
||||
/// of keeps what shaders wrote in the rest.
|
||||
/// What shaders write there by address is not brought back, so the copy is
|
||||
/// the only place that has it. The CPU's side holds the bytes as they were
|
||||
/// last taken, and only dwords that changed since go up.
|
||||
pub(crate) fn by_address(start: u64, len: u64) -> Option<Arc<Shadow>> {
|
||||
let host = host()?;
|
||||
if !cards() || !host.card_ready() {
|
||||
|
||||
Reference in new issue
Block a user