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:
@@ -335,6 +335,9 @@ static DWORD WINAPI sample_all_thread(void *p) {
|
||||
int nt = 0;
|
||||
int64_t t0 = 0;
|
||||
const int self = (int)syscall(SYS_gettid);
|
||||
/* ((Triforce) with HOS_CHAIN: "# at <ns>" before each sample, when it was taken: the threads are sampled one after another,
|
||||
a millisecond or more apart, and scripts/chain.py lays the samples on its exact path) */
|
||||
const int at = getenv("HOS_CHAIN") != NULL;
|
||||
for (;;) {
|
||||
if (access(go, F_OK)) {
|
||||
if (out) { fclose(out); out = NULL; hos_log("prof: all-thread sampling stopped"); }
|
||||
@@ -355,6 +358,7 @@ static DWORD WINAPI sample_all_thread(void *p) {
|
||||
nt++;
|
||||
}
|
||||
t0 = hos_now_ns();
|
||||
fprintf(out, "# t0_ns %lld\n", (long long)t0); /* ((Triforce) the clock of HOS_CHAIN's records: scripts/chain.py) */
|
||||
hos_log("prof: all-thread sampling of %d threads into %s", nt, path);
|
||||
}
|
||||
Sleep(2);
|
||||
@@ -363,6 +367,7 @@ static DWORD WINAPI sample_all_thread(void *p) {
|
||||
uintptr_t pcs[16];
|
||||
const int n = sample_one(th[i], pcs, 16);
|
||||
if (n < 0) continue;
|
||||
if (at) fprintf(out, "# at %lld\n", (long long)hos_now_ns());
|
||||
char line[1024];
|
||||
int len = snprintf(line, sizeof line, "%ld %s|", ms, tn[i]);
|
||||
for (int depth = 0; depth < n && len < (int)sizeof line - 96; depth++) {
|
||||
|
||||
Reference in New Issue
Block a user