Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add render target size multiplier option to StartXR #450

Merged

Conversation

Malcolmnixon
Copy link
Collaborator

@Malcolmnixon Malcolmnixon commented Apr 12, 2023

This pull request adds the Render Target Size Multiplier option to godot-xr-tools. This requires Godot 4.0.3 or later (godotengine/godot#73558).

@@ -87,6 +90,9 @@ func _get_configuration_warnings() -> PackedStringArray:
func _setup_for_openxr() -> bool:
print("OpenXR: Configuring interface")

# Set the render target size multiplier - must be done befor initializing interface
xr_interface.render_target_size_multiplier = render_target_size_multiplier
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't actually think the before initialize is important here, especially seeing OpenXR is initialized before you even run any GDScript code. I think that was a leftover remark from another property.

You can change the size multiplier on the fly and it will reallocate the buffers. It's just not something you want to do regularly.

Copy link
Member

@BastiaanOlij BastiaanOlij left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should probably hold off merging this until 4.0.3 is released, but other than that this looks good.

@BastiaanOlij BastiaanOlij added the enhancement New feature or request label Apr 12, 2023
@BastiaanOlij BastiaanOlij added this to the 4.2.0 milestone Apr 22, 2023
@BastiaanOlij
Copy link
Member

Need to double check if this works with the newly release 4.0.3, if so we should merge this.

@Malcolmnixon
Copy link
Collaborator Author

Need to double check if this works with the newly release 4.0.3, if so we should merge this.

I just checked and it wasn't back-ported into 4.0.3. Looks like we may need to wait for 4.1.

@Malcolmnixon Malcolmnixon marked this pull request as ready for review July 22, 2023 02:41
@Malcolmnixon
Copy link
Collaborator Author

The render target size multiplier was merged into the 4.1 release (see https://godotengine.github.io/godot-interactive-changelog/#4.1) and I just tested this works on 4.1.1

@Malcolmnixon
Copy link
Collaborator Author

We still have many people using Godot 4.0.3, so this now detects whether the feature is implemented.

@Malcolmnixon Malcolmnixon force-pushed the render-target-size-multiplier branch from 4390b17 to 8ecf447 Compare July 26, 2023 03:34
…4.0.3 or later

Handle both Godot 4.0 and 4.1 by detecting whether render_target_size_multiplier is implemented.

Add comment explaining Godot 4.1+ support.

Added change to VERSIONS.md
@Malcolmnixon Malcolmnixon force-pushed the render-target-size-multiplier branch from 8ecf447 to 0fe2a33 Compare July 26, 2023 03:41
@Malcolmnixon Malcolmnixon merged commit 8678e82 into GodotVR:master Jul 26, 2023
2 checks passed
@Malcolmnixon Malcolmnixon deleted the render-target-size-multiplier branch July 26, 2023 03:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants