unity3d – Getting dropped frames with XRStats in Unity VR

It looks like the issue you’ve run into is related to Unity’s XR API (specific OpenXR SDK and OQ2). The XRStats.TryGetDroppedFramewCount() method should be returning the number of dropped frames, but isn’t doing its job.

Maybe OpenXR SDK and OQ2 doesn’t support this feature you’re trying to implement? To confirm this, try running your code on a different XR device or SDK and see if the method you’re having problem with returns a value. Another possible solution could be to try calling XRStats.Initialize() at the start of your app. to ensure that the XRStats module is properly initialized.

I hope this helps, if not – I suggest you to contact the support teams of OpenXR SDK and OQ2 for more info on how to get dropped frames count in their platforms.

Read more here: Source link