diff options
| author | Tomasz Kramkowski <tomasz@kramkow.ski> | 2026-11-18 01:52:10 +0000 |
|---|---|---|
| committer | Tomasz Kramkowski <tomasz@kramkow.ski> | 2026-11-18 01:52:10 +0000 |
| commit | 3b735d74d82e879aa7534677c565ece9fa556f78 (patch) | |
| tree | c1ba84a2aab546792fc75ab5c072f8416193afc6 /src/steamvr_patches/include/layout.h | |
| parent | 363fe07ad4cd514d907647ee0eda2310f6efa3c0 (diff) | |
| download | steamvr-patches-3b735d74d82e879aa7534677c565ece9fa556f78.tar.gz steamvr-patches-3b735d74d82e879aa7534677c565ece9fa556f78.tar.xz steamvr-patches-3b735d74d82e879aa7534677c565ece9fa556f78.zip | |
steamvr: even bug fixes have bugs
The stutter fix was incomplete, waits were added for images which the
renderers render and consume, but not for images coming from the
application (e.g. eye textures). This hid some of the problem but you
can still get stutter in intensive games that regularly miss their frame
targets.
Also, the headset can send spurious acks for frame 0 after a reconnect,
despite not having received a frame, which can put the host into 3.3FPS
mode.
Diffstat (limited to 'src/steamvr_patches/include/layout.h')
| -rw-r--r-- | src/steamvr_patches/include/layout.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/steamvr_patches/include/layout.h b/src/steamvr_patches/include/layout.h new file mode 100644 index 0000000..07d312f --- /dev/null +++ b/src/steamvr_patches/include/layout.h @@ -0,0 +1,17 @@ +/* SPDX-FileCopyrightText: 2026 Tomasz Kramkowski <tomasz@kramkow.ski> + * SPDX-License-Identifier: CC0-1.0 + */ + +#ifndef PATCH_LAYOUT_H +#define PATCH_LAYOUT_H + +#include <stddef.h> + +#define ASSERT_SIZE(type, expected) \ + _Static_assert(sizeof(type) == (expected), #type " size must be " #expected) +#define ASSERT_OFFSET(type, field, expected) \ + _Static_assert( \ + offsetof(type, field) == (expected), #type "." #field " offset" \ + ) + +#endif |
