Triforce v0.5.2

The new launcher (Windows and Linux: the game's own look, music and settings, saves and mods pages, smaller updates in parts), benchmark mode (Find my best settings: the game tours four places by itself and writes its results), Quit and Restart in the pause menu under Mods, Squadala! in the Mods menu, battle music above 60 fps, menu text, the controller in the menus with the game in the background, the whole GameBanana list, RX 580 and RX 5000/6000 shader fixes, the pipeline cache kept through an update, async present black flashes, and faster builds.
This commit is contained in:
ruckus7382sfgsgdf
2026-11-19 10:52:50 -06:00
parent a750a21025
commit fb26495475
167 changed files with 21552 additions and 293 deletions

View File

@@ -79,6 +79,7 @@ struct Texture {
WriteGen release_gen;
uint64_t gpu_wrote_seen = 0; // (the newest finished GPU write into its storage it was uploaded after)
uint64_t last_written = 0; // (the frame the GPU last wrote it: a render target, each frame it is used)
uint64_t prev_written = 0; // ((Triforce) the frame it was written in before last_written's, 0: none: redrawn.h)
uint64_t first_written = 0; // (the frame its GPU contents began: written in that frame alone, a table the game baked)
uint64_t verify_hash = 0; // (RX_VK_VERIFY_DIM: its guest memory's hash when last uploaded)
uint32_t checked_epoch = 0;
@@ -244,6 +245,14 @@ void barrier_stats(int64_t* made, int64_t* left_out);
/// (hookshot) Set around a draw's sampled-texture lookups (vk_draw.cpp): a new ASTC texture there may wait for a later frame
/// once this frame's uploads passed their budget (texture_touch). Never for compute: a dispatch may bake what it reads once
extern thread_local bool upload_defer_ok;
/// (Triforce, redrawn.h) Whether a draw's target t was written in the frame before too (the scene, drawn every frame), so that a
/// texture the draw samples may be left for the next frame; false for one drawn once and kept (a text box). Null: true
bool texture_redrawn(const Texture* t);
/// (Triforce) Whether this frame left any texture for later so far (a new one not made or not uploaded, a re-upload left), so
/// that a draw that may not leave one must not reuse descriptors a draw that might built in this frame (vk_draw.cpp)
bool texture_frame_left_any();
/// (Triforce) Whether t still owes bytes (its first upload or a re-upload left for later: upload_owed.h)
inline bool texture_owes(const Texture* t) { return t && (t->owed.whole || !t->owed.ranges.empty()); }
/// (Triforce) The hold of the last picture (present_hold.h, vk_replay.cpp do_present): what the draws of the next frame may do
/// with a new texture once its uploads took their budget (present_hold::Mode), set at each present
void texture_hold_mode(int mode);