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:
@@ -1,7 +1,8 @@
|
||||
"""host/oot_menu.c's two halves: what other host files call is defined in both, and benchmark mode presses through the start
|
||||
in both.
|
||||
|
||||
The file is one half on Windows (#if defined(_WIN32)) and another elsewhere (#else). A function the Windows half added for the
|
||||
The file is one half for the game (#if !defined(HOS_OOT_MENU_NO_MOUSE): Windows, and Linux since the System page's Quit entry)
|
||||
and another for the tests (#else). A function the first half added for the
|
||||
rest of the host (v0.5.0's hos_oot_mods_down, nn_hid.c) and not the other half stopped every Linux build at the link (11-18).
|
||||
This test lists the non-static functions each half defines and the ones host/*.c outside it call, and checks that every one
|
||||
called from outside is in the non-Windows half too.
|
||||
@@ -29,7 +30,7 @@ DEF = re.compile(r"^(?!static\b)[A-Za-z_][\w \t\*]*?\b(hos_\w+)\s*\([^;]*\)\s*\{
|
||||
|
||||
|
||||
def halves(text):
|
||||
start = text.index("#if defined(_WIN32)")
|
||||
start = text.index("#if !defined(HOS_OOT_MENU_NO_MOUSE)")
|
||||
other = text.index("\n#else", start)
|
||||
end = text.index("\n#endif", other)
|
||||
return text[start:other], text[other:end]
|
||||
@@ -196,7 +197,7 @@ class OotMenuBenchOtherHalfTest(unittest.TestCase):
|
||||
shutil.copy(ROOT / "host" / "guest_bounds.h", tmp / "host" / "guest_bounds.h")
|
||||
(tmp / "host" / "t.c").write_text(FIXTURE, encoding="utf-8")
|
||||
binary = tmp / "t.exe"
|
||||
other_half = ["-DHOS_OOT_MENU_NO_MOUSE"] if sys.platform == "win32" else []
|
||||
other_half = ["-DHOS_OOT_MENU_NO_MOUSE"] # (the game's builds, Linux's too, have the first half)
|
||||
build = subprocess.run([compiler, "-std=gnu11", "-Wall", "-Werror", "-O1", "-g"] + other_half +
|
||||
[str(tmp / "host" / "t.c"), str(tmp / "host" / "oot_menu.c"), "-o", str(binary)],
|
||||
text=True, capture_output=True)
|
||||
|
||||
Reference in New Issue
Block a user