Renderer port 1: the title's 32-bit graphics heap used in place (VICTORY_PORT_CONSTANTS=1, off by default)
The title's routine at image+0x1e86440 reserves 185 MB of graphics memory below 4 GiB, splits it into five pieces, takes all their physical pages in one XMemAllocatePhysicalPages and maps them in order: one stretch of one section. Its 174 MB buffer at 0x34e10000 (the ring of constants, and what the skinning passes write through one view of all of it) had a host copy in the card's memory, ~17 MB a frame sent up in ~600 pieces, shader writes fetched back and compared, and ~6,000 constant fills a frame. With the switch the stretch is mapped once more at an address of ours and opened as a host heap there (OpenExistingHeapFromAddress1); title buffers and windows in it are buffers placed in that heap, the existing in-place form of a host copy: nothing tracked, sent up, fetched back or compared. The title's own views stay free to change; when it maps other pages there the region is forgotten. A line on the frame-rate report counts the CPU fills and buffer copies of ours that still read or write it. Replay (play-1125-0127, heap in the PC's memory): the title's own work +~3 ms on the card; the 30 ms added there are our compare passes, which do not run over memory in place. Ported from Belobug/VIctory-Belobug-AMD 86dc109 (author: local); conflict with heap_marks in host.rs kept both. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
bda6e597da
commit
9075710d14
5 files changed
+484
-6
No files matched your search
@@ -3820,6 +3820,7 @@ fn late_line(frames: f64) {
|
||||
);
|
||||
}
|
||||
card_steps::log(frames);
|
||||
crate::port::log(frames);
|
||||
crate::picked::log(frames);
|
||||
#[cfg(feature = "diagnostics")]
|
||||
log_blame(frames);
|
||||
@@ -7730,6 +7731,7 @@ impl HostList {
|
||||
if crate::heap_marks::on() && crate::descriptor::in_shader_heap(dst, len) {
|
||||
crate::heap_marks::prep_wrote();
|
||||
}
|
||||
crate::port::copied(dst, src, len);
|
||||
copy_mapped(dst as *mut u8, src as *const u8, len, true);
|
||||
// With the submission's one asking: the journal learns it.
|
||||
crate::watch::wrote(dst, len);
|
||||
@@ -7745,6 +7747,7 @@ impl HostList {
|
||||
{
|
||||
copies += 1;
|
||||
}
|
||||
crate::port::filled(src, len);
|
||||
if wide_fills() {
|
||||
batch.fills.push((dst, src, len));
|
||||
bytes += len as u64;
|
||||
|
||||
Reference in new issue
Block a user