Quantcast
Viewing all articles
Browse latest Browse all 40524

What thread does update()/render() occur on?

Is everything on the "main UI" thread? Or does openFrameworks create a new thread to run update()/render() on? I think it is the latter, since I ran into a problem on Fire TV where I wasn't able to play movies if I triggered them in the onTouch() method, but setting a flag and then playing the movie in the update() method worked fine.

The reason I ask is that I'm trying to fix a problem where MediaPlayer stutters all over the place and I'm wondering if it's because I'm calling MediaPlayer.prepare() on the main UI thread, as warned against here:

https://software.intel.com/en-us/android/articles/android-mediaplayer-sample-code-walkthrough-on-intel-architecture


Viewing all articles
Browse latest Browse all 40524

Trending Articles