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

Removed ResourceCache singleton logic. #2872

Merged
merged 1 commit into from
Oct 28, 2024

Conversation

Poobslag
Copy link
Owner

Nodes formerly managed by ResourceCache's singleton logic are now traditional autoload singletons.

I have a hunch ResourceCache's singleton management is the source of the game's crashes during scene changes. I think our code for rescuing these singletons from Godot's node freeing logic is failing, and these nodes get cleaned up sometimes, causing errors when they're reintroduced to the scene tree.

Nodes formerly managed by ResourceCache's singleton logic are now
traditional autoload singletons.

I have a hunch ResourceCache's singleton management is the source of the game's
crashes during scene changes. I think our code for rescuing these singletons
from Godot's node freeing logic is failing, and these nodes get cleaned up
sometimes, causing errors when they're reintroduced to the scene tree.
@Poobslag Poobslag merged commit b4976b6 into main Oct 28, 2024
@Poobslag Poobslag deleted the remove-resourcecache-singletons branch October 28, 2024 15:20
@Poobslag Poobslag linked an issue Oct 28, 2024 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Game crashes sometimes on scene change
1 participant