mirror of
https://git.triforceproject.com/triforce/source
synced 2026-11-29 04:18:49 -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:
@@ -63,6 +63,7 @@
|
||||
#include "vk_loader.h"
|
||||
#include "lock_census.h" // ((Triforce, 11-22, THREAD-68) who holds the lock a thread waits for, RX_VK_LOCK_CENSUS: DrainingMutex)
|
||||
#include "new_wait.h" // ((Triforce, 11-22, OS-04) a nothrow new that must answer at once: NoWait)
|
||||
#include "capturepushkeep.h" // ((Triforce, 11-26, C15) a direct recording voids the capture push the command buffers hold)
|
||||
|
||||
namespace mkwvk {
|
||||
void logf(const char* fmt, ...); // (vk_main.cpp)
|
||||
@@ -133,7 +134,8 @@ enum Bound : uint16_t {
|
||||
B_PAR, // a parallel replay's segments being recorded (par_active)
|
||||
B_RING_FULL, // backpressure: the ring had no room
|
||||
B_FOREIGN, // a thread without replay_mu made a call while the recorder was busy
|
||||
B_DIRECT, // code about to record into a command buffer directly, outside vk_work.h (Dear ImGui: vk_menu.cpp)
|
||||
B_DIRECT, // code about to record into a command buffer directly, outside vk_work.h (Dear ImGui: vk_menu.cpp; NGX, FFX,
|
||||
// XeSS); ((Triforce, 11-26, C15) it also voids every command buffer's kept capture push (capturepushkeep.h))
|
||||
B_PART, // ((Triforce) parts) a part's submit: its slot's reuse, a wait for its recording (vk_replay.cpp)
|
||||
B_QUEUE_LOCK, // ((Triforce) parts) the queue's lock about to be taken: the parts handed over submitted first (QueueMutex)
|
||||
B_COUNT
|
||||
@@ -182,11 +184,12 @@ inline void (*g_wake_by_address)(void* addr) = nullptr;
|
||||
// producer goes on into the next part at once. What needs a part submitted waits for that (parts_done, wait_part, settle_parts),
|
||||
// not for the ring to empty; replay_mu's unlock publishes and does not wait; the recorder waits on W between batches. A thread
|
||||
// about to take the queue's lock (QueueMutex, vk_internal.h) waits for the parts handed over first; one that holds a queue lock
|
||||
// never waits for a recorder that waits for that lock (queue_escaped). Unset: on with Threaded rendering (g_parts_default), so
|
||||
// off by default; =1 on with any recorder thread, =0 off.
|
||||
// never waits for a recorder that waits for that lock (queue_escaped). Unset: off ((Triforce, 11-27) Threaded rendering no longer
|
||||
// turns it on: with it the 3D was drawn with wrong textures on the lab's RX 7900 XT, vk_replay.cpp rec_parts_hooks); =1 on with any
|
||||
// recorder thread, =0 off.
|
||||
/// Set by mode_init from the switch; false until then, so the checks that set a mode themselves keep a boundary's drain
|
||||
inline std::atomic<bool> g_parts{false};
|
||||
/// (vk_replay.cpp: Threaded rendering's say with RX_VK_RECORDER_PARTS unset; null: off)
|
||||
/// (the switch unset: this one's say; null, as vk_replay.cpp leaves it since 11-27: off)
|
||||
inline bool (*g_parts_default)() = nullptr;
|
||||
/// (parts) a part's packets published in chunks of this many bytes while it is translated (a part of 512 draws is ~100-200 KB:
|
||||
/// most go over at their end, in one batch; a longer one is begun on by the recorder before its end). Tests change it
|
||||
@@ -922,6 +925,9 @@ inline void boundary_parts(Bound k) {
|
||||
/// vkDestroyInstance: the recorder stopped and joined first); ((Triforce) RX_VK_RECORDER_PARTS: boundary_parts; the recorder's own
|
||||
/// calls, a part's ends and submit, wait for nothing); otherwise a relaxed load and a branch
|
||||
inline void boundary(Bound k) {
|
||||
// ((Triforce, 11-26, C15) a library is about to record into a command buffer itself: its pushes and binds are not seen by
|
||||
// vk_work.h's macros, so no command buffer's kept capture push stands (capturepushkeep.h; k is a constant at every call)
|
||||
if (k == B_DIRECT) ::capturepushkeep::direct_recorded();
|
||||
const int m = g_mode.load(std::memory_order_relaxed);
|
||||
if (m == DEFER) {
|
||||
drain();
|
||||
|
||||
Reference in New Issue
Block a user