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

Speed up scene group scanning for text scenes #93723

Merged
merged 1 commit into from
Jul 4, 2024

Conversation

KoBeWi
Copy link
Member

@KoBeWi KoBeWi commented Jun 28, 2024

Changes how text scenes are scanned for groups. If the scene is not already loaded, it's loaded as text and parsed manually. It results in visible speedup especially in case of heavy scenes, though not sure if 100% reliable.

Scene group cache has been a source for various performance bugs. Even if they are fixed, the impact can still be noticeable. Which is why we discussed removing the cache completely as an alternative solution. It's not crucial for global groups and the benefits it brings are overshadowed by performance problems.

For now I went with this solution though.

Copy link
Member

@akien-mga akien-mga left a comment

Choose a reason for hiding this comment

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

I'd consider this partially a bugfix as the performance impact of the new feature can be pretty drastic.

This seems like a good first step to address it, so let's give it a spin.

@akien-mga akien-mga merged commit af55caf into godotengine:master Jul 4, 2024
18 checks passed
@akien-mga
Copy link
Member

Thanks!

@KoBeWi KoBeWi deleted the bandaid.tscn branch July 4, 2024 16:05
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.

2 participants