mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
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:
parent
05b44befcb
commit
db92cb3667
@ -75,7 +75,7 @@ public class SkeletonAssetManagerTest extends ApplicationAdapter {
|
|||||||
|
|
||||||
if (skeleton == null) {
|
if (skeleton == null) {
|
||||||
// Not loaded yet.
|
// Not loaded yet.
|
||||||
assetManager.update();
|
assetManager.update(16);
|
||||||
// System.out.println(assetManager.getDiagnostics());
|
// System.out.println(assetManager.getDiagnostics());
|
||||||
if (!assetManager.isFinished()) return;
|
if (!assetManager.isFinished()) return;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user