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

Builds from Unity freeze in HMD #209

Open
amigax opened this issue Feb 28, 2017 · 9 comments
Open

Builds from Unity freeze in HMD #209

amigax opened this issue Feb 28, 2017 · 9 comments

Comments

@amigax
Copy link

amigax commented Feb 28, 2017

I am exporting a working scene from unity, but when I run it it appears on the headset then just freezes (on screen if I have direct mode ticked in my vr cams in project then I can still see the app running and even the head tracking working, but in the headset just a frozen still). I am having to use core snapshot 0.6.1320 because if I go to the newer ones (tried many) I always get back to cannot create render manager. Finding the right combination of unity, osvr core seems almost impossible compared to back when it used to just work!..

@amigax
Copy link
Author

amigax commented Feb 28, 2017

I dont know why but this has stopped happening, I could use lower res than hd to stop it but now it isnt happening at all.

@nanospork
Copy link
Contributor

Just wanted to voice that, after a fresh Windows install, I had this happen too!

Started up a build in Direct Mode and the screen was frozen. Dropped the resolution and it works fine. Went back up and it started up frozen again.

Will report back if it also magically goes away after some time.

@amigax
Copy link
Author

amigax commented Mar 9, 2017

yes I still observe this in "good" or higher quality around 50% of the time.

@nanospork
Copy link
Contributor

Yeah, I'm running into the issue again, in both Direct and Extended mode, even when setting the app at a lower resolution. Happens even with the new package build provided in #208.

@nanospork
Copy link
Contributor

Playing around with the quality settings, it looks like it may be related to V-sync.

@amiga Can you try disabling V-sync to see if that gets rid of the problem for you as well? (Edit->Project Settings->Quality; go through each of the Levels and set V Sync Count to "Don't Sync")

I seem to remember reading somewhere that it was recommended to turn V Sync off for VR (possibly OSVR specifically) anyway.

@DuFF14
Copy link
Member

DuFF14 commented Mar 9, 2017

Correct, V-sync should be set to "Don't Sync"

@DuFF14
Copy link
Member

DuFF14 commented Mar 14, 2017

@amiga any updates on this issue? are you using HDK2 or another HMD?

Regarding you original post, there shouldn't be any compatibility issues with OSVR-Core and OSVR-Unity. If Rendermanager fails to create, it's more likely a driver, hardware, firmware, or configuration issue.

Not sure if this helps but FWIW, my workflow is to install the latest OSVR SDK from here, and then download the latest Unity package from here, replacing the one in my existing Unity project by closing the project, opening it again, and importing the package before hitting play. If RM fails to create in Unity, I run the RenderManager example programs included with the SDK to see if it's just a Unity issue or not. Usually if there's an issue, the RM example programs won't work either, then it's a matter of troubleshooting the issues mentioned above. If the RM examples do work and RM still fails in Unity, I test a fresh import of the plugin in a new project.

Definitely make sure your firmware is updated if you are using HDK, there are some known issues with direct mode with older firmware.

@amigax
Copy link
Author

amigax commented Mar 15, 2017

HDK2 with newest firmware (hdk2svr-2.00.hex) I am still getting it in good quality or above, I am sticking to "fastest" to avoid it. To be honest I have not tried turning off vsync yet, I need to give that a go.

@DuFF14
Copy link
Member

DuFF14 commented Mar 31, 2017

Confirmed that vsync causes a freeze.

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