Skip to content

Commit

Permalink
Merge pull request #1010 from BastiaanOlij/fix_start_vr_script
Browse files Browse the repository at this point in the history
Fixed typo in start vr script for selecting refresh rate
  • Loading branch information
akien-mga authored Jan 15, 2024
2 parents 4a4b46c + 5679310 commit 81ea8ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion xr/openxr_character_centric_movement/start_vr.gd
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func _on_openxr_session_begun() -> void:
new_rate = available_rates[0]
else:
for rate in available_rates:
if rate > new_rate and rate < maximum_refresh_rate:
if rate > new_rate and rate <= maximum_refresh_rate:
new_rate = rate

# Did we find a better rate?
Expand Down
2 changes: 1 addition & 1 deletion xr/openxr_origin_centric_movement/start_vr.gd
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func _on_openxr_session_begun() -> void:
new_rate = available_rates[0]
else:
for rate in available_rates:
if rate > new_rate and rate < maximum_refresh_rate:
if rate > new_rate and rate <= maximum_refresh_rate:
new_rate = rate

# Did we find a better rate?
Expand Down

0 comments on commit 81ea8ed

Please sign in to comment.