Triforce v0.8.0

Evil HD (SMAA Ultra, 16x filtering, full textures, ambient occlusion with bounce light, sunlight shafts, foliage drawn 4x as far, the remastered texture pack's loader and the launcher's download of it), FSR 3.1 frame generation for every GPU, Intel XeSS, FSR 4 model choice, ReShade presets, Auto (this PC), HUD placement, the options menu in 13 languages, a second input for every control, hold to toggle, DualSense speaker and haptics, NFC from the player's own dumps, the above-60 fps game fixes, the Debug tab's flight and Inventory fixes, the launcher's full settings, and over 250 fixes.
This commit is contained in:
ruckus7382sfgsgdf
2026-11-25 10:21:32 -06:00
parent 861702476a
commit 4fa4f9188b
881 changed files with 179428 additions and 15581 deletions

View File

@@ -34,7 +34,7 @@ ID-cache consumer and parameter policy helpers, using the public NVN parameter
layout. Vulkan, registration/environment/hash inputs and the replay-lock boundary
are modeled. Standard containers use tagged throwing allocators to target each
cache operation. The owning-cache fault is armed after successful resource
creation, independent of an STL's sentinel/bucket allocation choices. The 108
creation, independent of an STL's sentinel/bucket allocation choices. The 138
cases cover failure/retry/cache chains, ownership and allocation rollback,
independent keys, registration changes, threads and unchanged sampler policies.
The actual complete descriptor-binding function and fingerprint helpers run
@@ -47,3 +47,28 @@ Run `python -I -B tests/run_all.py sampler_admission --strict`, or invoke the
test with `--headers <Vulkan include folder> --cxx <compiler>`; `--sanitize` is
supported on Linux. Game-free failure models do not prove native OOM/device-loss
recovery, image-quality changes, a full campaign or performance improvements.
## The device's sampler limit
A driver makes only so many samplers (`maxSamplerAllocationCount`: 4000 on NVIDIA's and Intel's Windows drivers), and the
renderer never destroyed one, while its keys multiply with the upscalers' texture LOD bias and the Texture filtering row.
Past the limit `vkCreateSampler` fails and the draws that need a new sampler are left out. Now (`vk_draw.cpp`, the samplers'
section head):
- Keys whose create infos sample alike share one sampler (`SamplerInfo`: the create info less what no sample reaches).
- The room is the limit less 64 (a quarter of a smaller limit). From 3/4 of it, each new sampler first retires one that no
draw took for a whole frame, the least recently resolved of those. A retired sampler leaves the book and its keys, and
the samplers' generation moves (`sampler_bias_changed`), which empties every other place a handle is kept: a thread's
`sampler_for` table, `sampler_make`'s `mine`, and the kept descriptors (`desc_keep.h`, `kept_texture`'s `now.samp`). It is
destroyed once the timeline reaches `vk_retirement_value()` as taken at its retirement: after every recording made so far.
- Which samplers are in use is not known to the book while the tables above answer for it. Every move of the generation
empties them, so a sampler drawn with resolves at the book again within the frame after a move. A sampler is retired only
when it has not resolved there since a move at least two presents old; when none qualifies the generation is moved once
(a survey, the first one half the spare room before the retiring point) and nothing is retired until that has aged.
- The room full (the samplers made and the retired ones the GPU still has): nothing is made, and the key fails for that
present, as a failed creation does.
The `limit*` cases model a driver of 80 samplers and a GPU timeline: 300 recordings on two long-lived threads with a
moving window of samplers (each made once, none refused, none destroyed before the GPU passed the last recording that drew
with it), a room filled within one frame, shared infos, the two allocation faults, and `limit-held`: the generation has
moved when a sampler is retired, and its key is made anew under another handle while the old one is still the GPU's.