Water light on, PS4 pads, F1 menu saves at once, long-session memory, memory switches
Rendering and memory (GPL-3.0 code ported in; credits in the source): - Water: 64-lane compute programs on 32-lane waves keep each wave together through loops and set up shared memory from the first thread, so the water's tiled light no longer leaves dark blocks. It runs by default now (VICTORY_WATER_LIGHT=0 leaves it out; an empty value, an earlier version's saved OFF, runs it). Also cloud tiles and the screen probes' ray activation. - Placed views: their padding cleared as before; folding a buffer view's first element into its address is VICTORY_PLACED_FOLD=1, off: with it on, clothing and caps swapped to other variants for single frames in the boat cutscene. - Texture sweep: textures whose copy was let go leave the looks until used again. Static samplers made first, in one order. Small buffers made ahead of the first 3D frame. - play mode: VICTORY_TEXSPK_PASS_MS=8, VICTORY_PASSES_HOT=1, VICTORY_HELPER_PRIORITY=1. - Memory switches, all off: VICTORY_SLOT_EVICT, VICTORY_ALLOCATOR_TRIM, VICTORY_BUDGET_PACK (and VICTORY_LIST_POOL_IDLE_S). Input: DualShock 4 (0x05C4, 0x09CC, 0x0BA0 adapter) read over HID, USB and Bluetooth, beside the DualSense; PlayStation pads rumble, and stop when the game ends (issue #352). F1 menu: every change is saved at once; it saves to victory-settings.txt in VICTORY_HOME or %LOCALAPPDATA%\victory however the game was started (no more "NO SETTINGS FILE"). Warm-up start: its 30 s count from the first frame of 100 draws or more, not from the start: waiting at the title screen restarted it too early and the next run still sat at 14 fps. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
df2daafeb1
commit
64d4931b3d
44 files changed
+4664
-952
No files matched your search
@@ -636,9 +636,13 @@ pub fn dlss_framegen_card(name: &str) -> bool {
|
||||
model.len() == 4 && (model.starts_with("40") || model.starts_with("50"))
|
||||
}
|
||||
|
||||
/// The adapter a device made with no adapter named is on (the first), its
|
||||
/// name and LUID.
|
||||
/// The card the host device is made on (`hardware_adapter`; else the first
|
||||
/// adapter, where a device made with no adapter named is), its name and LUID.
|
||||
fn default_adapter() -> Option<(String, windows::Win32::Foundation::LUID)> {
|
||||
if let Some((adapter, name, _)) = victory_shader::emit::host::hardware_adapter() {
|
||||
// SAFETY: a plain DXGI query.
|
||||
return unsafe { adapter.GetDesc1() }.ok().map(|d| (name, d.AdapterLuid));
|
||||
}
|
||||
// SAFETY: plain DXGI queries.
|
||||
unsafe {
|
||||
let factory: IDXGIFactory1 = CreateDXGIFactory1().ok()?;
|
||||
|
||||
Reference in new issue
Block a user