Threaded rendering on iOS, Android

Monkey Forums/Monkey Programming/Threaded rendering on iOS, Android

Peeling(Posted April) [#1]
In the apps we've written, there's a great opportunity to improve performance on iOS and Android devices. We're using a homebrew middleware layer to manage all rendering, which involves creating lists of 'render packets' that help us with layering and sorting graphical content.

Executing these render-packet lists could easily be shunted to a separate thread, as no allocation or deallocation is necessary. But there's a problem: Monkey's main thread IS the GL thread. And we can't thread-off the render packet generation because that DOES involve lots of potential allocation and deallocation (it's a bit like Unity's gui system where UI logic is wrapped up in the calls to display UI content)

Does anyone have any insight into what it would take to re-organise things such that the GL update is ticking along on a separate thread, ready to be supplied with batched rendering instructions?

Cheers
Andy C


Xaron(Posted April) [#2]
Wow, now that's quite an enhanced topic. That's probably a thing Mark could answer, but I guess you would need to contact him directly via mail.