mirror of
https://git.triforceproject.com/triforce/source
synced 2026-11-28 20:08:51 -04:00
Triforce v0.8.5
A Randomizer page in the launcher, a new title screen with Mods and Save Select tabs, scaling changes applied in game, the Jabu-Jabu bars fixed, renderer frame-time work and the brightness-flash fix, and fixes from the 0.8.4 reports.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
// Frame dumps (vk_dump.h): each step's image blitted (nearest) into a small RGBA32 image of its numeric kind and copied
|
||||
// to host memory with the submission; written once the submission completed.
|
||||
#include <algorithm>
|
||||
#include <chrono>
|
||||
#include <cmath>
|
||||
#include <cstdio>
|
||||
#include <cstdlib>
|
||||
@@ -265,6 +266,19 @@ void dump_present(int64_t presents) {
|
||||
if (*q == ',') q++;
|
||||
}
|
||||
}
|
||||
// ((11-28) lab: <RX_VK_DUMP_DIR>/dump.now: the next frame dumped, the file removed. Checked twice a second)
|
||||
if (const char* d = getenv("RX_VK_DUMP_DIR"); d && presents >= 0 && !dump_armed) {
|
||||
static auto next = std::chrono::steady_clock::now();
|
||||
if (std::chrono::steady_clock::now() >= next) {
|
||||
next = std::chrono::steady_clock::now() + std::chrono::milliseconds(500);
|
||||
const std::string trigger = std::string(d) + "/dump.now";
|
||||
if (FILE* f = fopen(trigger.c_str(), "rb")) {
|
||||
fclose(f);
|
||||
std::remove(trigger.c_str());
|
||||
targets.push_back(presents + 1), counts.push_back(1);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (dump_armed) logf("vk: dump of the frame after present %lld: %d steps so far", (long long)armed_present, seq);
|
||||
if (dump_armed && presents < armed_until) return; // (a run of frames: one folder, steps numbered on)
|
||||
dump_armed = std::find(targets.begin(), targets.end(), presents) != targets.end();
|
||||
|
||||
Reference in New Issue
Block a user