Main > Features > Asynchronous Resource Loading
All of the Tiny2D resources can either be loaded synchronously
(i.e. blocking until resource gets loaded) or asynchronously
(i.e. loading operation is done on another thread).
The latter is especially useful when implementing animated
loading screens to maintain consistent rendering frame rate.
All Create() functions on all resources have an optional
immediate parameter. When set to true (default), resources
are loaded synchronously, otherwise they're loaded
texture.Create("my_texture.png", false); // Loads texture asynchronously
texture.Create("my_texture.png"); // Loads texture synchronously (default)