Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
Back to tool/Back to issues
#1729·openvr

`GetTimeSinceLastVsync` returns bad `pfSecondsSinceLastVsync` on AMD 7900 XTX GPUs

Author: nicoco007Created Mar 20, 2023Updated May 25, 2026

I just got a 7900 XTX and noticed strange tracking behaviour when using GetDeviceToAbsoluteTrackingPose. This issue has been reproduced on at least two other systems running 7900 XTX GPUs, with no issues prior to changing the GPU. After some investigation, it looks like pfSecondsSinceLastVsync returned by GetTimeSinceLastVsync (used for calculating the seconds to photons as shown in the docs for the function) is wrong – it just returns the number of seconds since the application started. According to the docs it should never return a value higher than the duration of a single frame, so something's definitely awry. Other numbers (display frequency, vsync to photons, frame count) seem accurate; the only one I'm unsure about is vsync to photons which has a constant value of 0.009458 s. Switching back to my old GPU, pfSecondsSinceLastVsync is essentially constant at a value slighly lower than the expected frame time, which I believe is what's expected here.

This was tested in Unity 2019.3 and 2019.4. I'm happy to test & provide more information as needed!

Source: ValveSoftware/openvr

View original on GitHubView discussion on GitHub