Triforce v0.7.0 "Sage Of Courage"

The 0.6 crashes after warps and area changes fixed (no write-back into memory the capture leaves out), invisible objects fixed (occlusion gate), DLSS frame generation flicker fixed, achievements, the renderer built with a play profile, faster translated game code, helper threads judged on settled scenes, memory, shader preparation, audio effects, launcher, controls and Linux fixes.
This commit is contained in:
ruckus7382sfgsgdf
2026-11-22 11:59:06 -06:00
parent 70c210cee1
commit e6f2f248f2
529 changed files with 55958 additions and 1898 deletions

View File

@@ -14,6 +14,9 @@
#include "vk_work.h" // (after the others: counts the commands that do GPU work, for full_barrier)
namespace mkwvk {
// ((Triforce, 11-22, the performance audit's DESC-06, after Source A's) The frame being recorded is dumped: read inline by
// dump_on() (vk_dump.h), which every draw asks. It was this file's own `armed`, behind a call
bool dump_armed = false;
namespace {
enum Kind { KIND_FLOAT, KIND_UINT, KIND_SINT };
@@ -37,7 +40,6 @@ struct Item {
std::vector<int64_t> targets; // the presents whose next frame is dumped
std::vector<int> counts; // (and how many frames from there: RX_VK_DUMP=<present>+<count>)
bool armed = false;
int64_t armed_present = 0, armed_until = 0;
int seq = 0;
std::vector<Item> items;
@@ -246,10 +248,6 @@ void write_item(Item& it) {
} // namespace
bool dump_on() {
return armed;
}
int dump_seq() {
return seq;
}
@@ -267,10 +265,10 @@ void dump_present(int64_t presents) {
if (*q == ',') q++;
}
}
if (armed) logf("vk: dump of the frame after present %lld: %d steps so far", (long long)armed_present, seq);
if (armed && presents < armed_until) return; // (a run of frames: one folder, steps numbered on)
armed = std::find(targets.begin(), targets.end(), presents) != targets.end();
if (!armed) return;
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();
if (!dump_armed) return;
armed_present = presents;
armed_until = presents + 1;
for (size_t i = 0; i < targets.size(); i++)
@@ -312,7 +310,7 @@ bool step_wanted(int step, const char* what) {
}
void dump_image(VkCommandBuffer cmd, Texture* tex, uint32_t level, uint32_t layer, const char* what) {
if (!armed || !tex || !tex->image || tex->samples != VK_SAMPLE_COUNT_1_BIT) return;
if (!dump_armed || !tex || !tex->image || tex->samples != VK_SAMPLE_COUNT_1_BIT) return;
if (!step_wanted(seq, what)) return void(seq++);
// (RX_VK_DUMP_DEPTH_ONLY=1: the passes' colour targets left out, depth only (per-draw dumps of big targets fit))
static const bool depth_only = getenv("RX_VK_DUMP_DEPTH_ONLY") != nullptr;
@@ -420,7 +418,7 @@ std::vector<BufItem> buf_items;
} // namespace
void dump_buffer(VkCommandBuffer cmd, VkBuffer src, VkDeviceSize off, VkDeviceSize n, const char* what) {
if (!armed || !src || !n) return;
if (!dump_armed || !src || !n) return;
n = std::min<VkDeviceSize>(n, 65536) & ~3ull;
if (!n) return;
BufItem it;