Triforce v0.7.0 "Sage Of Courage"

The 0.6 crashes after warps and area changes fixed (no write-back into memory the capture leaves out), invisible objects fixed (occlusion gate), DLSS frame generation flicker fixed, achievements, the renderer built with a play profile, faster translated game code, helper threads judged on settled scenes, memory, shader preparation, audio effects, launcher, controls and Linux fixes.
This commit is contained in:
ruckus7382sfgsgdf
2026-11-22 11:59:06 -06:00
parent 70c210cee1
commit e6f2f248f2
529 changed files with 55958 additions and 1898 deletions

View File

@@ -57,7 +57,8 @@ def check_source():
# (and what the other rules ask on their own is kept from before the hold's lines, the 97% rule's with it, for the
# pass's third tier: a texture unused for the eviction's own time goes for that part)
"uint64_t rule_budget = budget;", "rule_budget = std::min(rule_budget, total_bytes > over ? total_bytes - over : 0);",
"const uint64_t rule_to = vram_compact::rule_target(total_bytes, rule_budget);",
# ((Triforce) RX_VK_EVICT_EXCESS: the size apart, tests/test_evict_excess.py; =0 the old form)
"? vram_compact::rule_target(total_bytes, size_budget, rule_budget)", ": vram_compact::rule_target(total_bytes, rule_budget);",
# (the reserve: a lower line that sets the budget too, the hold's own line kept for the textures not long unused;
# the driver's limit, when it asks for more, clears both)
"hold_to = evict_to;", "vram_compact::reserve_pct(pct));", "if (reserve < budget) budget = evict_to = reserve;",
@@ -68,14 +69,14 @@ def check_source():
sweep_fn = block(tex[tex.index("void texture_frame(uint64_t completed)"):], "void texture_sweep(uint64_t completed")
need("vk_texture.cpp: texture_sweep()", sweep_fn,
["const bool by_hold = evict_to != 0 && !sweep;",
"if (shifted || drawn_over(tex)) hold_dead += tex->bytes + tex->pad;",
"if (shifted || drawn_over(tex) || obsolete(tex)) hold_dead += tex->bytes + tex->pad;",
# ((Triforce) the pass's own end, the hold's pass apart: 7/8 of a size, the budget itself by live use, tex_pressure.h)
"if ((!sweep && !by_hold && tex_pressure::met(total_bytes, pending_bytes, budget, press.live)) || too_young(last))",
"const uint64_t to = vram_compact::hold_target(age60(frame_no - last), need_unused, rule_to, hold_to, evict_to);",
"if (to == UINT64_MAX || vram_compact::hold_met(total_bytes, hold_live, hold_dead, to)) continue;",
"if (by_hold && !overwritten) hold_live += tex->bytes + tex->pad;"])
# (and a live texture is judged by the hold only once it is known whether a render target drew over it)
if not sweep_fn.index("const bool overwritten = shifted || drawn_over(tex);") < sweep_fn.index("vram_compact::hold_target(age60(frame_no - last)"):
if not sweep_fn.index("const bool overwritten = shifted || drawn_over(tex) || stale;") < sweep_fn.index("vram_compact::hold_target(age60(frame_no - last)"):
raise SystemExit("vk_texture.cpp: the hold's pass judges a texture before it knows whether it is a dead render target")
need("vk_texture.cpp: compact_step()", block(tex, "void compact_step(uint64_t completed)"),
["if (!compact_on()) return;", "vram_compact::run_from(min_free, compact.pressed)", "vram_compact::rest(compact.pressed)",