Forum Discussion
MikeF
11 years agoTrustee
Disable vsync in 0.6.0
I'm trying to disable vsync in the latest sdk but it doesnt seem to have any effect when turning it off through the quality settings, is there a workaround for this?
9 Replies
Replies have been turned off for this discussion
- cyberealityGrand ChampionWhat version of Unity are you using? Testing stand-alone build or in editor? Extended or Direct Mode?
- MikeFTrusteeSorry, was in a rush
-5.0.3f2
-same result in editor and build of vsync forced on
-same result with direct mode and extended - cyberealityGrand ChampionI see this comment in OVRManager.cs:
SDK rendering forces vsync unless you pass ovrHmdCap_NoVSync to Hmd.SetEnabledCaps()
EDIT: Removed my bad information.
Does that fix your issue? - MikeFTrusteeNo that didnt seem to have any effect
- cyberealityGrand ChampionSorry, that was bad info. Just my luck for trying to code without compiling it.
The real fix is below. You can add this code to the bottom of Update() in OVRPlayerController:if(Input.GetKeyUp(KeyCode.N)){
uint caps = OVRManager.capiHmd.GetEnabledCaps();
caps ^= (uint)HmdCaps.NoVSync;
OVRManager.capiHmd.SetEnabledCaps(caps);
} - MikeFTrusteeOk i tried putting it where you said and i'm getting this error:
The name `HmdCaps' does not exist in the current context - cyberealityGrand ChampionYou need to put this at the top of the file under the other using statements (around line 24):
using Ovr;
- MikeFTrusteegreat that did it. Thanks!
- cyberealityGrand ChampionAwesome!
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 4 months ago
- 8 months ago
- 8 months ago