TAsmund Posted May 17 Share Posted May 17 Developing in Unity 2022 using the Wave SDK (not OpenXR). I need our application to run at the lowest available framerate, so I use the interop WVR_GetAvailableFrameRates to get the available framerates, then set it with a call to WVR_SetFrameRate(lowestFrameRate); What is the difference between doing that, and setting the framerate through Unity with Application.targetFrameRate = (int)lowestFrameRate; Should I do both? Or is Application.targetFrameRate ignored? Link to comment Share on other sites More sharing options...
VIVE_chengnay Posted May 17 Share Posted May 17 Hi @TAsmund, https://docs.unity3d.com/ScriptReference/Application-targetFrameRate.html It is stated in above link. Link to comment Share on other sites More sharing options...
TAsmund Posted May 17 Author Share Posted May 17 Thank you for reply. My question was about the Wave driver interop call: WVR_SetFrameRate which is explained on this page https://hub.vive.com/storage/docs/en-us/WVR_SetFrameRate.html How does that work together with Application.targetFrameRate? Link to comment Share on other sites More sharing options...
VIVE_chengnay Posted May 17 Share Posted May 17 Hi @TAsmund, 2 minutes ago, TAsmund said: How does that work together with Application.targetFrameRate? You're asking this question is it because you call Application.targetFrameRate and it doesn't print what you are expected? Link to comment Share on other sites More sharing options...
TAsmund Posted May 17 Author Share Posted May 17 Using WVR_SetFrameRate seems to work, I was just wondering if just calling WVR_SetFrameRate is the correct way to set framerate, or if Application.targetFrameRate should also be set? Link to comment Share on other sites More sharing options...
VIVE_chengnay Posted May 17 Share Posted May 17 Hi @TAsmund, According to your result, calling WVR_SetFrameRate works. And, according to below statement, VR platforms ignore both QualitySettings.vSyncCount and Application.targetFrameRate. 5 hours ago, VIVE_chengnay said: Hi @TAsmund, https://docs.unity3d.com/ScriptReference/Application-targetFrameRate.html It is stated in above link. I don't think you will need to set Application.targetFrameRate. Link to comment Share on other sites More sharing options...
TAsmund Posted May 21 Author Share Posted May 21 Thank you so much for clarifying this! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now