lily_iniad Posted December 6, 2021 Share Posted December 6, 2021 Hello. I'm a Japanese student researching whether VR sickness can be improved by adjusting the frame rate. I'm sorry for my poor English, I'm running it through a translator. Let's cut to the chase. Using unity, I was able to successfully change the FPS on my PC screen using the following method. void Start () { Application.targetFrameRate=30; //30fps QualitySettings.vSyncCount = 0; } and the vSyncCount setting in unity has also been changed to "Don't Sync". However, when I connected it to the Vive pro, it automatically did this Application.targetFrameRate=-1 The value of -1 seems to be an automatic adjustment. As a result, FPS will be 90, which is the refresh rate value. But, I want the FPS value to vary between 10~90. Is there any way to prevent Application.targetFrameRate = -1? I would appreciate your advice. Link to comment Share on other sites More sharing options...
VIVE_chengnay Posted December 7, 2021 Share Posted December 7, 2021 @lily_iniad Did you post your question in wrong forum? This forum should be Wave SDK related question. Could you list the versions for Unity, SDKs that you installed in your project? Link to comment Share on other sites More sharing options...
lily_iniad Posted December 7, 2021 Author Share Posted December 7, 2021 Thanks for the reply, @chengnay Indeed I seem to have posted in the wrong place. I would like to post this to developer support. Thank you. Link to comment Share on other sites More sharing options...
VIVE_chengnay Posted December 7, 2021 Share Posted December 7, 2021 @lily_iniad I just move your thread to Developer support. Could you list the versions for Unity, SDKs that you installed in your project? Link to comment Share on other sites More sharing options...
lily_iniad Posted December 7, 2021 Author Share Posted December 7, 2021 @chengnayThanks for the support. The version of unity is 2018.4.36f1(64-bit). Where can I find the SDK? Sorry for my ignorance. Link to comment Share on other sites More sharing options...
VIVE_chengnay Posted December 7, 2021 Share Posted December 7, 2021 @lily_iniad If you are using Vive Pro, you could just download SteamVR Unity Plugin from asset store or github. Link to comment Share on other sites More sharing options...
VIVE_chengnay Posted December 7, 2021 Share Posted December 7, 2021 @lily_iniad I found this from Unity website, it says "Additionally if the QualitySettings.vSyncCount property is set, the targetFrameRate will be ignored and instead the game will use the vSyncCount and the platform's default render rate to determine the target frame rate." Will it is because you set vSyncCount to 0, that's why targetFrameRate is ignored. Could you try not to set vSyncCount, will targetFrameRate stay at 30? Link to comment Share on other sites More sharing options...
lily_iniad Posted December 7, 2021 Author Share Posted December 7, 2021 @chengnay Thanks, I'm already using the SteamVR Unity Plugin. I chose Unity version 2018 for the behavior of this; for some reason it doesn't work in 2019 or later. Well, I don't care about the version, so it's okay. As I wrote in my first post, the vSyncCount has already been changed to "Don't Sync" in the Project Setting. In this case, it behaves fine on the PC screen. However, when I connect to the Vive Pro Application.targetFrameRate = 30; didn't work, so I changed not only the Project Setting but also QualitySettings.vSyncCount = 0; in addition to the Project Setting. Unfortunately, the result was the same. Link to comment Share on other sites More sharing options...
VIVE_chengnay Posted December 7, 2021 Share Posted December 7, 2021 @lily_iniad It seems Application.targetFrameRate only works in Editor mode, it will not work after you build and run on Vive Pro. Correct me if I am wrong. Link to comment Share on other sites More sharing options...
lily_iniad Posted December 7, 2021 Author Share Posted December 7, 2021 @chengnay I see that the Application.targetFrameRate = -1 is not avoided except in editor mode, which is a pity. Thanks for the answer. I've been trying to find a way other than Application.targetFrameRate, but I can't seem to get it to work. Is there a way to change the FPS while using Vive Pro? By the way, I heard that this is not possible with Oculus due to its specifications. 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