/// <summary> /// Updates this instance. /// </summary> private void Update() { if (IsConnected && OpenVR.Compositor != null) { //TODO: Move somewhere else since this is a hack Time.DrawFPS = 90; Time.UpdateFPS = 90; // Get poses VRUtils.ReportCompositeError(OpenVR.Compositor.WaitGetPoses(renderPoses, gamePoses)); // Update UpdateHMD(); UpdateDevices(); } }
/// <summary> /// Submits the data for specified eye. /// </summary> /// <param name="eye">The eye.</param> /// <param name="texture">The texture.</param> /// <param name="bounds">The bounds.</param> private void Submit(EVREye eye, ref Texture_t texture, ref VRTextureBounds_t bounds) { VRUtils.ReportCompositeError(OpenVR.Compositor.Submit(eye, ref texture, ref bounds, EVRSubmitFlags.Submit_Default)); }