mirror of
https://git.triforceproject.com/triforce/source
synced 2026-11-29 04:18:49 -04:00
Triforce v0.8.5.1
Hotfix: the 0.8.5 readback wait (RX_VK_RB_REC_END) is off by default again; it cost up to 20 fps.
This commit is contained in:
@@ -6199,7 +6199,7 @@ bool rb_rec_end_on() {
|
||||
const bool on = ::mkwvk::wb_rec_wait::rec_end_on(getenv("RX_VK_RB_REC_END"));
|
||||
logf("vk: a readback waits for %s (RX_VK_RB_REC_END%s)",
|
||||
on ? "the last part of the recording that writes it back" : "the first part of the recording that writes it back, as before",
|
||||
on ? "=0: the first part, as before" : "=0");
|
||||
on ? "=0 or unset: the first part, as before" : "=1: the last part; 0.8.5.1: off by default, its ~5 ms reads");
|
||||
return on;
|
||||
}();
|
||||
return v;
|
||||
|
||||
@@ -233,8 +233,10 @@ struct Parts {
|
||||
}
|
||||
};
|
||||
|
||||
/// RX_VK_RB_REC_END's text: on unset or empty; set, its number (atoi, as the renderer's other switches: 0 or a word is off)
|
||||
inline bool rec_end_on(const char* text) { return !(text && *text && std::atoi(text) == 0); }
|
||||
/// RX_VK_RB_REC_END's text: ((Triforce, 0.8.5.1)) OFF unless set to a number other than 0. On, the game's worker threads' reads of
|
||||
/// its double-buffered GPU results waited ~5 ms for the whole frame's recording (the owner's save: 70 fps for 85-91). The fix for
|
||||
/// the brightness flashes comes back without that cost (only the GPU work the game waited for)
|
||||
inline bool rec_end_on(const char* text) { return text && *text && std::atoi(text) != 0; }
|
||||
|
||||
/// What a readback's wait by recordings did
|
||||
struct ReadbackWait {
|
||||
|
||||
Reference in New Issue
Block a user