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:
@@ -76,8 +76,8 @@ struct Gpu {
|
||||
|
||||
int main() {
|
||||
// the switch: on unset or empty; set, it is its number (atoi, as the renderer's other switches: a word reads as 0, off)
|
||||
CHECK("unset: on", wr::rec_end_on(nullptr));
|
||||
CHECK("empty: on", wr::rec_end_on(""));
|
||||
CHECK("unset: off (0.8.5.1)", !wr::rec_end_on(nullptr));
|
||||
CHECK("empty: off (0.8.5.1)", !wr::rec_end_on(""));
|
||||
CHECK("0: off", !wr::rec_end_on("0"));
|
||||
CHECK("00: off", !wr::rec_end_on("00"));
|
||||
CHECK("1: on", wr::rec_end_on("1"));
|
||||
|
||||
@@ -114,7 +114,7 @@ def check_source():
|
||||
"the 3000-readback line does not count the reads that waited past a part")
|
||||
|
||||
dev = (ROOT / "docs/development.md").read_text(encoding="utf-8")
|
||||
rows = [line for line in dev.splitlines() if line.startswith("| `RX_VK_RB_REC_END=0` |")]
|
||||
rows = [line for line in dev.splitlines() if line.startswith("| `RX_VK_RB_REC_END=1` |")]
|
||||
check(len(rows) == 1, "docs/development.md: RX_VK_RB_REC_END is not in the switches table once")
|
||||
check("tests/test_readback_rec_end.py" in rows[0] and "wb_rec_wait.h" in rows[0], "docs/development.md: the row names neither the rule nor its test")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user