[BUG] OpenXR: xrEndFrame blocks until vsync while xrWaitFrame returns immediately (Linux, Vulkan)
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 8/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- linux
- Área
- computer-graphics
Línea de trabajo
This repo is an issue tracker for the closed-source SteamVR Linux runtime, so there is no source tree here to patch; the first step is reproducing the timing with a Vulkan OpenXR app and logging xrWaitFrame, xrBeginFrame and xrEndFrame durations against IVRCompositor::GetFrameTimings as the reporter did. Read the linked 2020 SteamVR forum thread about the 1.15.10 fix to see what regressed. Done means the timing traces are attached and a Valve engineer can confirm whether pacing has moved back into xrEndFrame.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Describe the bug
On Linux, SteamVR's OpenXR runtime paces the application inside xrEndFrame
instead of xrWaitFrame:
xrWaitFramereturns almost immediately (median 0.05–0.3 ms), even when
called early in the frame interval.xrEndFrameblocks for 4–6 ms (median 4.6–4.8 ms) and returns about 0.2 ms
after the next vsync.- The block does not track GPU load. The app's GPU work is about 1.3 ms per
frame and GPU utilisation is 15–25%.
The spec places throttling in xrWaitFrame ("xrWaitFrame throttles the
application frame loop in order to synchronize application frame submissions
with the display") and says xrEndFrame "may return immediately".
Why it matters
An engine that calls xrEndFrame on its render thread loses that thread for
the length of the block. The next frame cannot start until just after vsync,
and the compositor starts its work about 7.5 ms after vsync, so the app has
about 7.3 ms to produce a frame rather than 11.1 ms at 90 Hz. In a scene that
fits the full interval comfortably, 8–10% of frames were reprojected; with
the block kept off the render thread, about 1%.
Related
This looks like the behaviour reported in 2020 on the SteamVR OpenXR forum,
"xrEndFrame() blocks instead of xrWaitFrame()", where a Valve developer
replied that it was fixed in 1.15.10:
https://steamcommunity.com/app/250820/discussions/8/3001046778348674981/
To Reproduce
- Run a Vulkan OpenXR application on SteamVR for Linux.
- Time each of
xrWaitFrame,xrBeginFrameandxrEndFrame. xrWaitFramereturns at once;xrEndFrameholds the caller until vsync.
Cross-checked against IVRCompositor::GetFrameTimings, read from a
background OpenVR application.
Expected behavior
xrWaitFrame blocks to pace the application, and xrEndFrame returns
promptly.
System Information
- SteamVR version: 2.19.3 (beta)
- Distribution: Arch Linux, kernel 7.3.4-arch1-1, GNOME on Wayland
- GPU: NVIDIA GeForce RTX 5070 Ti, driver 620.70.06
- Headset: Valve Index, 90 Hz
- Lenguaje dominante
- Shell
- Estrellas
- 1.2k
- Forks
- 58
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de ValveSoftware/SteamVR-for-Linux
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
ValveSoftware/SteamVR-for-Linux#981 · 4 comentarios · 1 reacción ·
-
bug
Dificultad 4/5 3-5 días Aptitud para principiantes 38/100
ValveSoftware/SteamVR-for-Linux#1097 ·
-
bug
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
ValveSoftware/SteamVR-for-Linux#1095 · 2 comentarios ·
-
bug
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
ValveSoftware/SteamVR-for-Linux#1094 ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
ValveSoftware/SteamVR-for-Linux#1093 ·
Todos los issues de ValveSoftware/SteamVR-for-Linux
Issues similares
-
Bump runtime to 26.08Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 78/100
flathub/cc.arduino.IDE2#168 ·
-
area:docs community needs-triage
Dificultad 1/5 1-3 horas Aptitud para principiantes 84/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
NetSparkleUpdater/NetSparkle#759 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
sidebandstudio/clawtrate#1114 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100