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 caching to DisplayServer::can_create_rendering_device() #97698

Conversation

Calinou
Copy link
Member

@Calinou Calinou commented Oct 1, 2024

This greatly speeds up the method when using the Compatibility rendering method, where this method is not guaranteed to return true in that case.

This is needed to ensure #97416 doesn't unnecessarily slow down the editor.

This greatly speeds up the method when using the Compatibility rendering
method, where this method is not guaranteed to return `true` in that case.
@Calinou Calinou force-pushed the displayserver-can-create-rendering-device-add-caching branch from 6ec3545 to 6275370 Compare October 1, 2024 17:43
Copy link
Member

@clayjohn clayjohn left a comment

Choose a reason for hiding this comment

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

Thank you!

@akien-mga akien-mga merged commit 34913f2 into godotengine:master Oct 2, 2024
19 checks passed
@akien-mga
Copy link
Member

Thanks!

@Calinou Calinou deleted the displayserver-can-create-rendering-device-add-caching branch October 2, 2024 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants