Yes, that's an issue. What should usually happen with images and sounds is that you will return quickly from OnUpdate(), but OnLoading() will be called instead of OnRender() while they are loading. You can put a 'please wait' message here to start with. OnLoading() should also be called when loading images and sounds in OnCreate().
However, there are undoubtedly things that will not load asynchronously this way, and in that case, since Monkey is single-threaded, you'll stay in OnUpdate() until it's done. The same would apply to any super-long function calls. In that case you'll have to find a way to do cooperative or full multi-tasking (the latter would involve going outside Monkey) if you want to maintain responsiveness.
|