Skip to content

Commit

Permalink
Linux: remove Vulkan async flag change reprojection flag (#1803)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vixea committed Aug 23, 2023
1 parent a111749 commit 72fb6e4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
5 changes: 1 addition & 4 deletions alvr/server/cpp/alvr_server/HMD.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,7 @@ vr::EVRInitError Hmd::Activate(vr::TrackedDeviceIndex_t unObjectId) {
// Also Disable async reprojection on vulkan
#ifndef _WIN32
vr::VRSettings()->SetBool(
vr::k_pch_SteamVR_Section, vr::k_pch_SteamVR_DisableAsyncReprojection_Bool, true);
vr::VRSettings()->SetBool(vr::k_pch_SteamVR_Section,
vr::k_pch_SteamVR_EnableLinuxVulkanAsync_Bool,
Settings::Instance().m_enableLinuxVulkanAsync);
vr::k_pch_SteamVR_Section, vr::k_pch_SteamVR_DisableAsyncReprojection_Bool, !Settings::Instance().m_enableLinuxAsyncReprojection);
#endif

if (!m_baseComponentsInitialized) {
Expand Down
2 changes: 1 addition & 1 deletion alvr/server/cpp/alvr_server/Settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ void Settings::Load() {

m_enableViveTrackerProxy = config.get("enable_vive_tracker_proxy").get<bool>();
m_TrackingRefOnly = config.get("tracking_ref_only").get<bool>();
m_enableLinuxVulkanAsync = config.get("linux_async_reprojection").get<bool>();
m_enableLinuxAsyncReprojection = config.get("linux_async_reprojection").get<bool>();

m_enableControllers = config.get("controllers_enabled").get<bool>();
m_controllerMode = (int32_t)config.get("controllers_mode_idx").get<int64_t>();
Expand Down
2 changes: 1 addition & 1 deletion alvr/server/cpp/alvr_server/Settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class Settings {

bool m_enableViveTrackerProxy = false;
bool m_TrackingRefOnly = false;
bool m_enableLinuxVulkanAsync;
bool m_enableLinuxAsyncReprojection;

bool m_enableControllers;
int m_controllerMode = 0;
Expand Down

0 comments on commit 72fb6e4

Please sign in to comment.