Programmatically turn on/off motion smoothing and force interleaved reprojection?
Short story: I want to programmatically be able to turn on/off motion smoothing and force interleaved reprojection on (i.e. forcing 45Hz, similar to pressing shift + r). How can I do that?
Long story: I’m rendering huge 3D-CAD models containing like 100 to 200 million triangles (Yes, you read right). This is on a very efficient GPU-driven renderer (very little CPU-work, all done by “indirect” rendering, and these models have a lot of occlusion), but still there are viewpoints when I’m not always able to reach 90Hz. In these situations I find that turning off motion smoothing and shift + r gives a much better experience (motion smoothing is way worse on these types of scenes). I’m using gpu timer queries so I know when I’m not able to reach 90Hz, and in those situations I want to turn off motion smoothing and force interleaved reprojection at 45Hz. I’ve tried vr::VRCompositor()->ForceInterleavedReprojectionOn – but that didn’t do it (at least not as shift + r). Regarding motion smoothing, I’ve tried vr::VRSettings()->SetBool(vr::k_pch_SteamVR_Section, vr::k_pch_SteamVR_MotionSmoothing_Bool, _currentForceInterleavedReprojectionAlwaysOn); - but that I’m not allowed to do...
What works ok-isch is to do some CPU-spinning in order to let OpenVR belive that I'm only doing 45Hz but it would be sooo much better if I could just "emulate" shift + r. Even so, I still need to disable motion smoothing in those situations.
Anything, please!
Best regards, Mikael
Source: ValveSoftware/openvr