The first room renders right: byte-copied descriptor records are mirrored, views off their copy's elements get their own bytes, card room for the first world frame, levels on demand run on the card
- Descriptor records the title copies into its heap as bytes are mirrored before each submission (pull request #305 by Flyander, after upstream VIctory 86a5ed6), with a per-slot fingerprint so only records that changed are mirrored, the page read through the kernel, a switch (VICTORY_HEAP_SYNC=0) and a counter: about 40,000 records a frame on the test machine. - A buffer view off its copy's elements gets a copy of its own bytes (after upstream 86a5ed6; VICTORY_VIEW_OWN_COPY=0: refused as before). - Room on the card for the world's first-frame bursts: buffer copies (VICTORY_CARD_ROOM_FOR_BUFFERS, now on) and render targets (VICTORY_CARD_ROOM_FOR_TARGETS_MB, 3,072); a copy turned down gives its room up and is logged; the texture pass asks again every 32 MiB. 98 buffer copies made (945 MB) where earlier runs made 1; 25 MB compared on the processor a frame where it was 550 to 710. - Levels on demand: the fixes of pull request #747 by AscilCH. First run on a card (RTX 4070, VICTORY_LEVELS_ON_DEMAND=1): no device loss, 3.1 GB not allocated for levels the title does not hold. Still off by default. - The guarded blocks under storage writes into physical pages are opened by default (VICTORY_PAGE_WRITES=0: counted only). - Shaders: a program is translated with first-half interpolation pairs only if it was refused for one (with it on for every program 8,551 working pixel programs came out changed); parked lane-mask pairs, f64 conversions and sums, lane permutations: 14 more programs translate. - Counted, not fixed: an indirect compute pass asks for about 77,500 groups in x and is cut to 65,535. One five-minute game run of these changes on the test machine: no device loss, no failed request. This merged tree was built; its test suites were not run. Co-Authored-By: Claude Fable 5.2 <[email protected]>
This commit is contained in:
1 parent
847a0af35e
commit
6afd80f252
13 files changed
+1188
-58
No files matched your search
@@ -297,7 +297,23 @@ pub struct UserData {
|
||||
|
||||
/// Translates the vertex, pixel, compute or mesh program of a console
|
||||
/// shader container.
|
||||
///
|
||||
/// A program refused because the first half of an interpolation is read as
|
||||
/// data is translated once more with first halves evaluated as the pair
|
||||
/// they start (`lower::with_first_half_pairs`), and only such a program:
|
||||
/// with that on for every program, 8,551 pixel programs of the title that
|
||||
/// already translated came out changed (an extra evaluation in each), for
|
||||
/// the sake of 9 that did not translate.
|
||||
pub fn translate(container: &[u8]) -> Result<HostShader, ShaderError> {
|
||||
match translate_plain(container) {
|
||||
Err(ShaderError::Unsupported { what, .. }) if what == lower::FIRST_HALF => {
|
||||
lower::with_first_half_pairs(|| translate_plain(container))
|
||||
}
|
||||
other => other,
|
||||
}
|
||||
}
|
||||
|
||||
fn translate_plain(container: &[u8]) -> Result<HostShader, ShaderError> {
|
||||
let c = Container::parse(container)?;
|
||||
let dxil = c
|
||||
.part(FourCC::DXIL)
|
||||
|
||||
Reference in new issue
Block a user