Skip to content

Commit

Permalink
Fix Display frequency mismatch error
Browse files Browse the repository at this point in the history
  • Loading branch information
oneup03 committed Jul 19, 2024
1 parent bed652b commit e3e5be1
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions vrto3d/src/hmd_device_driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,10 @@ vr::EVRInitError MockControllerDeviceDriver::Activate( uint32_t unObjectId )
// Display settings
vrp->SetFloatProperty( container, vr::Prop_UserIpdMeters_Float, stereo_display_component_->GetConfig().depth);
vrp->SetFloatProperty( container, vr::Prop_UserHeadToEyeDepthMeters_Float, 0.f);
vrp->SetFloatProperty( container, vr::Prop_DisplayFrequency_Float, stereo_display_component_->GetConfig().display_frequency);
vrp->SetFloatProperty( container, vr::Prop_DisplayFrequency_Float, stereo_display_component_->GetConfig().display_frequency * 1.5f );
vrp->SetFloatProperty( container, vr::Prop_SecondsFromVsyncToPhotons_Float, stereo_display_component_->GetConfig().display_latency);
vrp->SetFloatProperty( container, vr::Prop_SecondsFromPhotonsToVblank_Float, 0.0);
vrp->SetBoolProperty( container, vr::Prop_ReportsTimeSinceVSync_Bool, false);
vrp->SetBoolProperty( container, vr::Prop_IsOnDesktop_Bool, false);
vrp->SetBoolProperty( container, vr::Prop_DisplayDebugMode_Bool, false);
vrp->SetBoolProperty( container, vr::Prop_HasDriverDirectModeComponent_Bool, false);
Expand Down Expand Up @@ -289,6 +291,10 @@ vr::EVRInitError MockControllerDeviceDriver::Activate( uint32_t unObjectId )
vrs->SetBool(vr::k_pch_SteamVR_Section, vr::k_pch_SteamVR_EnableHomeApp, false);
vrs->SetBool(vr::k_pch_SteamVR_Section, vr::k_pch_SteamVR_MirrorViewVisibility_Bool, false);
vrs->SetBool(vr::k_pch_SteamVR_Section, vr::k_pch_SteamVR_EnableSafeMode, false);
vrs->SetBool(vr::k_pch_SteamVR_Section, vr::k_pch_SteamVR_DisplayDebug_Bool, false);
vrs->SetBool(vr::k_pch_SteamVR_Section, vr::k_pch_SteamVR_MotionSmoothing_Bool, false);
vrs->SetBool(vr::k_pch_SteamVR_Section, vr::k_pch_SteamVR_DisableAsyncReprojection_Bool, true);
vrs->SetBool(vr::k_pch_SteamVR_Section, vr::k_pch_SteamVR_AllowSupersampleFiltering_Bool, false);

pose_update_thread_ = std::thread( &MockControllerDeviceDriver::PoseUpdateThread, this );

Expand Down Expand Up @@ -526,7 +532,7 @@ StereoDisplayComponent::StereoDisplayComponent( const StereoDisplayDriverConfigu
//-----------------------------------------------------------------------------
bool StereoDisplayComponent::IsDisplayOnDesktop()
{
return true;
return false;
}

//-----------------------------------------------------------------------------
Expand Down

0 comments on commit e3e5be1

Please sign in to comment.