aboutsummaryrefslogtreecommitdiffstats
path: root/steamvr/driver_vrlink/ack-window.c
diff options
context:
space:
mode:
authorTomasz Kramkowski <tomasz@kramkow.ski>2026-11-20 01:06:42 +0000
committerTomasz Kramkowski <tomasz@kramkow.ski>2026-11-20 01:06:42 +0000
commit324b340445da5a790b95daac96fe6c59fbfeebbb (patch)
treeff3d7b5bc8465fd77dbc08cae5344afb2cf5612b /steamvr/driver_vrlink/ack-window.c
parentaed234e1060070348fe3c3f99bef4533b3ae2c58 (diff)
downloadsteamvr-patches-324b340445da5a790b95daac96fe6c59fbfeebbb.tar.gz
steamvr-patches-324b340445da5a790b95daac96fe6c59fbfeebbb.tar.xz
steamvr-patches-324b340445da5a790b95daac96fe6c59fbfeebbb.zip
steamvr 2.19.4 (26793788)
Valve has fixed a bunch of things to do with streaming performance. A couple of smaller things remain in that area. The unsequenced accesses to eye textures produced by a VR application are still there and will still cause weird visual stutters especially when an application is struggling to produce frames quickly. The broken shader descriptors are still there, and I still have no idea what these are used for, or if these cause any actual issues... Seems like valve might just be looking at my patches for ideas on how to fix things, which is good. Maybe I'll get around to tracking down those vrcompositor shut-down crashes, as it seems I'm starting to run out of significant bugs.
Diffstat (limited to 'steamvr/driver_vrlink/ack-window.c')
-rw-r--r--steamvr/driver_vrlink/ack-window.c35
1 files changed, 0 insertions, 35 deletions
diff --git a/steamvr/driver_vrlink/ack-window.c b/steamvr/driver_vrlink/ack-window.c
deleted file mode 100644
index acd668d..0000000
--- a/steamvr/driver_vrlink/ack-window.c
+++ /dev/null
@@ -1,35 +0,0 @@
-// SPDX-FileCopyrightText: 2026 Tomasz Kramkowski <tomasz@kramkow.ski>
-// SPDX-License-Identifier: CC0-1.0
-
-#include <layout.h>
-#include <stdint.h>
-#include <trampoline.h>
-
-struct Transmitter {
- unsigned char unknown_000[0x17c];
- int32_t next_frame; // -1 before the first frame is issued
- int32_t last_ack;
- int32_t cutoff;
-};
-ASSERT_OFFSET(struct Transmitter, next_frame, 0x17c);
-ASSERT_OFFSET(struct Transmitter, last_ack, 0x180);
-ASSERT_OFFSET(struct Transmitter, cutoff, 0x184);
-
-void maybe_update_ack(struct Transmitter *tx, uint32_t incoming)
-{
- if (tx->next_frame < 0) return;
- uint16_t behind = (uint16_t)(tx->next_frame - 1 - incoming);
- if (behind >= 0x8000) return;
-
- if (tx->cutoff >= 0 && (uint16_t)(incoming - tx->cutoff) >= 0x8000) return;
- tx->last_ack = incoming;
- tx->cutoff = incoming;
-}
-
-// Hooks where the current code checks an incoming ack, clears the cutoff, and
-// updates the last ack. The intent is to specifically replace all of that.
-TRAMPOLINE(
- accept_ack, CALL(maybe_update_ack, 0, "r8",
- "mov rdi, rbx\n"
- "mov esi, eax\n") "jmp resume_ack\n"
-);