mirror of
https://git.triforceproject.com/triforce/source
synced 2026-11-27 19:48:49 -04:00
Triforce v0.8.4
Smoother frames and less memory: a compact pipeline cache on NVIDIA, the renderer and game-code profiles, native float in the hot game code, late GPU work left as before. A PC whose NVIDIA shader cache drops the game's gets a driver cache folder of its own. Fixes from the 0.8.3 reports: RenoDX's encoder and tone mapping matched on NVIDIA again; the out-of-memory notice at the next start; no microphone open without a recording device; Evil HD undergrowth kept to 80/120 m; the FG HUD layer keeps what it learned; a stick past 92% is a full push; the DualSense jack read only when used; Linux Save Select, Quit and Restart, and the Linux launcher's sound; the update check uses the program's own version.
This commit is contained in:
@@ -132,6 +132,19 @@ def demangle(n):
|
||||
return m.group(1) if m else n
|
||||
|
||||
|
||||
WAIT_MODULES = ("ntdll.dll", "KERNELBASE.dll", "win32u.dll", "KERNEL32.DLL")
|
||||
WAIT_FRAMES = ("hos_cv_sleep", "spin_until_set", "hos_oot_barrier_wait", "vc_acquire", "vc_yield", "libcpp_condvar_wait",
|
||||
"condition_variable4wait", "hos_sleep")
|
||||
|
||||
|
||||
def waiting(leaf_module, frames):
|
||||
"""(Triforce, 11-26) a sample in a wait: the leaf in the system's wait or sleep code, or a host wait among its first frames
|
||||
(scripts/chain.py: working against waiting below the game)"""
|
||||
if leaf_module in WAIT_MODULES:
|
||||
return True
|
||||
return any(w in f for f in frames[:4] for w in WAIT_FRAMES)
|
||||
|
||||
|
||||
def profile_lines(path, skip):
|
||||
"""Keep the old line-based slice without holding the capture in memory."""
|
||||
with open(path, encoding="utf-8", errors="replace") as f, ExitStack() as files:
|
||||
|
||||
Reference in New Issue
Block a user