05-06-2020 03:41 PM
Solved! Go to Solution.
05-15-2020 07:59 AM
05-15-2020 06:47 PM
05-15-2020 07:42 PM
05-15-2020 08:13 PM
1960Steve said:
Ran Oculus repair and it now works.
05-15-2020 09:04 PM
05-15-2020 09:54 PM
kojack said:
I thought I'd take a look at what X-Plane is doing with the Oculus sdk using my Oculus Injector. Umm, why is X-Plane loading the Oculus runtime library 375 times in a row before I've even ticked the "Enable VR" button?I'm going to have to change my hooking system to avoid maxing out hooks, no other vr game I've tested does this.Edit: while writing this it's already reached 3455 calls to load the oculus library. Is it just reloading the library every frame?
05-15-2020 10:47 PM
So far what I'm seeing:
During the VR panel settings screen (with Enable VR turned off) X-Plane loads the Oculus runtime library, calls ovr_Initialize (asking for runtime 1.23), then 0.008s later it calls ovr_Shutdown. It repeats this pattern 25 times per second.
Repeatedly initializing and shutting down the oculus sdk 25 times a second is not normal behaviour for a VR app. Also maybe they should update their oculus sdk, they are requesting a runtime from 2 years ago. That shouldn't hurt, I don't think the application binary interface has changed between then and now, but if it had...
I need to add some more logging to see if they are doing anything else between the initialize and shutdown. (I can't tell why they do anything, all I can see is what they are telling the sdk to do, and I need to manually write code for each function I want to check).
Interesting side note: Audica and Pistol Whip both use runtime 1.37. Beat Saber uses 1.45. All three do the same procedure (they are all Unity apps): initialize the sdk in invisible mode (has full access but no rendering, what I use for Auto Oculus Touch), shut it down a fraction of a second later, then initialize again in focus aware mode for the actual game. I'm guessing the first invisible call is to check connected hardware or something.
05-16-2020 01:39 AM
05-16-2020 08:19 AM
05-16-2020 09:10 AM