Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GetTimeSinceLastVsync returns bad pfSecondsSinceLastVsync on AMD 7900 XTX GPUs #1729

Open
nicoco007 opened this issue Mar 20, 2023 · 2 comments

Comments

@nicoco007
Copy link

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!

@PiMaker
Copy link

PiMaker commented Jul 22, 2023

Photon latency on 7900 series cards is incorrect overall. This manifests as increased latency in direct-mode rendering, as reported here originally for the NVIDIA RTX 4090 (where the problem appears to have been fixed since): https://www.reddit.com/r/SteamVR/comments/118vlrl/fix_for_rtx_4090_and_vr_tracking_input_latency_lag/

On a Vive Pro 1 attached to my 7900 XTX, I can reduce perceived latency drastically by using the vsync_to_photons_increment debug option to set it to ~9.0ms.

@themaster567
Copy link

Bumping this issue, as it is still a problem almost two years later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants