Best place to load data

Hi there,

I wanted to show some information about the progress while starting an Application. The problem is that Nifty-GUI is firstly updated with the begin of the update-loop (which is a little bit too late). And so my question is , where (generally, apart from this problem) is the best place to load (massive) of assets?

  • Load the assets parted in the first few update-loops?
  • Load the assets per enqueued Callables?
  • Or stay with loading it in the (simple-)initialize method?



    Thanks in advance

    doe300

You can simply start a thread that loads every model once without displaying it, this way the models should be cached in the assetManager. The assetManager is threadsafe. However dont modify the scenegraph from that thread, only load each model once.