Post #35: Godot's Threaded Loading

Godot supports loading resources asynchronously. This is extremely important; when creating a game, if you ever need to load anything from disk, you don't want your game to freeze while things are being loaded!
The normal ResourceLoader.load function will block the thread. So, instead, Godot provides ResourceLoader.load_threaded_request for async loading.
There are three main functions the docs recommend you might want to utilize:
- ResourceLoader.load_threaded_request -> this loads resources asynchronously in the background
- ResourceLoader.load_threaded_get_status -> gives you a percentage representing the progress of loading the resource
- ResourceLoader.load_threaded_get -> how you retrieve the loaded resource
Check out the docs for this here.