mirror of
https://git.triforceproject.com/triforce/source
synced 2026-11-25 18:48:51 -04:00
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:
28
tests/test_program_life.py
Normal file
28
tests/test_program_life.py
Normal file
@@ -0,0 +1,28 @@
|
||||
"""The states of what the game's programs need loaded (gpu/vk/program_life.h, used by gpu/vk/vk_programs.cpp): a load is queued
|
||||
once when the game first makes a program of prepared stages and never for stages nothing was prepared for (a create never
|
||||
translates); a first draw waits only for a load under way; a unit is let go by count only, when the game has freed every program
|
||||
of it and it was drawn, the longest freed first; the next create loads it again. Compile and run the rule. No game or GPU is needed.
|
||||
"""
|
||||
import argparse
|
||||
import subprocess
|
||||
import tempfile
|
||||
from pathlib import Path
|
||||
|
||||
RUN_ALL_ARGS = ["--cxx", "{cxx}"]
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[1]
|
||||
|
||||
|
||||
def main():
|
||||
parser = argparse.ArgumentParser(description=__doc__)
|
||||
parser.add_argument("--cxx", default="g++")
|
||||
args = parser.parse_args()
|
||||
with tempfile.TemporaryDirectory(prefix="program-life-") as tmp:
|
||||
exe = Path(tmp) / "program-life"
|
||||
subprocess.run([args.cxx, "-std=c++20", "-Wall", "-Wextra", "-Werror", "-D_CRT_SECURE_NO_WARNINGS",
|
||||
str(ROOT / "tests/program_life_test.cpp"), "-o", str(exe)], check=True)
|
||||
subprocess.run([str(exe)], check=True)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
Reference in New Issue
Block a user