Skip to content

Commit

Permalink
Roomscale: Fix eye desyncs in native stereo
Browse files Browse the repository at this point in the history
  • Loading branch information
praydog committed Jul 10, 2023
1 parent fd2d4c7 commit 1dc710c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/mods/vr/FFakeStereoRenderingHook.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4043,7 +4043,9 @@ __forceinline void FFakeStereoRenderingHook::calculate_stereo_view_offset(
}

// Roomscale movement
if (true_index == 0 && vr->is_roomscale_enabled()) {
// only do it on the right eye pass
// if we did it on the left, there would be eye desyncs when the right eye is rendered
if (true_index == 1 && vr->is_roomscale_enabled()) {
const auto world = sdk::UEngine::get()->get_world();

if (const auto controller = sdk::UGameplayStatics::get()->get_player_controller(world, 0); controller != nullptr) {
Expand Down

0 comments on commit 1dc710c

Please sign in to comment.