Closed ahmed-t-mpc closed 5 years ago
This setting controls whether not vrserver will kill processes that don't respond to VREvent_Quit after 5 seconds. Are you seeing it not have that effect?
Yes, SteamVR still kills my process even if I set the value to true. Actually, I'm not able to set the value to true with the above provided line.
Can you post a system report?
Also, if you just respond to VREvent_Quit by calling VR_Shutdown you wouldn't be killed regardless of this setting. SteamVR doesn't care if your process keeps running, it cares if it keeps vrclient.dll loaded.
Can you post a system report?
Also, if you just respond to VREvent_Quit by calling VR_Shutdown you wouldn't be killed regardless of this setting. SteamVR doesn't care if your process keeps running, it cares if it keeps vrclient.dll loaded.
That's exactly what I ended up doing but believing it is more of a workaround than a proper way to work with SteamVR. Similarly, is there a way to detect when SteamVR is back on and call VR_Init again ? I guess I can't poll events anymore after VR_Shutdown :s
Calling VR_Shutdown after receiving VREvent_Quit is definitely the proper way to interact with SteamVR. That's the entire point of that event.
Can you tell me more about your app? If it's an overlay app you could just add yourself to the list that SteamVR auto-launches when it starts up.
Calling VR_Shutdown after receiving VREvent_Quit is definitely the proper way to interact with SteamVR. That's the entire point of that event.
Can you tell me more about your app? If it's an overlay app you could just add yourself to the list that SteamVR auto-launches when it starts up.
Ok cool :) No, it's not an overlay app. It's a game-like app that supports multiple input devices at the same time : via DirectX for Gamepads and OpenVR for VR. If SteamVR crashes for whatever reason. I'd like the app to keep on running, basically outputting zeros for VR inputs until SteamVR comes back live again.
You could call VR_Init with VRApplication_Background as your application type. That will return VRInitError_Init_NoServerForBackgroundApp if SteamVR is not running, and success or failure as normal if it is running.
You could call VR_Init with VRApplication_Background as your application type. That will return VRInitError_Init_NoServerForBackgroundApp if SteamVR is not running, and success or failure as normal if it is running.
Great, it works. How do you also get the controller actions back in that case ? After steamvr is restarted, actions don't respond anymore.
EDIT : Fixed by reloading manifest file and regenerating action handles.
Hi. The fact that vr::VRSettings()->SetBool(vr::k_pch_SteamVR_Section, vr::k_pch_SteamVR_NeverKillProcesses_Bool, true); doesn't have any effect (on SteamVR 1.2.7 at least), is it a bug or a feature ? Is there another way to change that value at runtime ?