Poobslag / turbofat

Block-dropping puzzle game
MIT License
55 stars 19 forks source link

Removed ResourceCache singleton logic. #2872

Closed Poobslag closed 2 weeks ago

Poobslag commented 2 weeks ago

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.