Search code examples
libgdxassets

Assets Manager Update and FinishLoading


When should I use update() vs finishLoading() ? I use assetManager.load() then finishloading() in show() method of my screen I don't use update()


Solution

  • You only need update() if you want to show some kind of animation while many objects are loading. It allows you to load stuff one at a time in the render loop so you can continue drawing something animated until it's done (for example, a loading screen with a bouncing ball). If you call finishLoading(), the method will block until everything is finished loading, so nothing will animate during that time. The length of time it blocks depends entirely on what and how much you're loading.