Update the asset manager for only 16ms, not until the next asset is loaded.

https://github.com/libgdx/libgdx/wiki/Managing-your-assets#optimize-loading
This commit is contained in:
Nathan Sweet 2021-09-20 23:28:50 -10:00
parent 05b44befcb
commit db92cb3667

View File

@ -75,7 +75,7 @@ public class SkeletonAssetManagerTest extends ApplicationAdapter {
if (skeleton == null) {
// Not loaded yet.
assetManager.update();
assetManager.update(16);
// System.out.println(assetManager.getDiagnostics());
if (!assetManager.isFinished()) return;