Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Luka

Pages: [1]
1
Support / compileAllObjects in another thread
« on: March 14, 2016, 04:28:33 pm »
Hi
I have an app in which user can choose which 3d object wants to see. When the user taps on the button, I call loadSerializedObjectArray, set up the textures and everything, and at the end, call compileAllObjects. However, this method is rather slow and sometimes it takes around 3-5 seconds to execute. This blocks OpenGL thread and, of course, the screen freezes. Would it be possible to call compileAllObjects in another thread? This way, the rendering of the rest of the scene would continue normally and the object would be shown when ready. Would it be possible to somehow do the compilation beforehand?  I've tried calling object.compile() in another thead, but still compileAllObjects takes too long.

Thanks for the help,

Luka

Pages: [1]