ValveSoftware / openvr

OpenVR SDK
http://steamvr.com
BSD 3-Clause "New" or "Revised" License
6.07k stars 1.28k forks source link

"blockOculusSDK: false" - Doesn't work. #1709

Open sergioberg opened 1 year ago

sergioberg commented 1 year ago

If "blockOculusSDKOnAllLaunches" is true then per-application setting "blockOculusSDK: false" has no effect.

My overlay app (fpsVR) uses OpenVR and Oculus API at the same time. For Oculus headsets, frame statistics are better taken from native API. My overlay app will bypass the blockOculusSDKOnAllLaunches setting on some systems in case of autorun, but only when it is a single overlay app with autorun, in other cases when there is more than one or there is some slight delay in startup, then blockOculusSDKOnAllLaunches will be applied successfully and the application will not be able to initiate the Oculus API. But the exception "blockOculusSDK: false" does not affect the situation at all. If manually run application, problem repeats - "blockOculusSDK: false" has no effect. Is it possible to fix it?

I encountered in practice that users forget that they themselves had previously enabled "blockOculusSDKOnAllLaunches", and they often do it following the instructions of OculusKiller (https://github.com/LibreQuest/OculusKiller)

danwillm commented 1 year ago

If you really have to, you can set the value of blockOculusSDKOnAllLaunches using the IVRSettings interface. I don't think I'd recommend doing that though, if people have explicitly enabled it.

Is that what you're looking to do?

sergioberg commented 1 year ago

If you really have to, you can set the value of blockOculusSDKOnAllLaunches using the IVRSettings interface. I don't think I'd recommend doing that though, if people have explicitly enabled it.

Is that what you're looking to do?

Of course not, because I don't want to change the settings that the user made. The user doesn't want the games to run under the Oculus API, but I want them to have stats in my app from the Oculus API. My application is a background application in the Oculus API. It is not a 3D scene app