Skip to content

[Android] Is it recommended to use runtimeInBackgroundThread ? Any additional details? #3609

Answered by ajwfrost
2jfw asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, I have mixed feelings about this feature ... the intention was to disassociate the Android UI thread from the AIR rendering thread, so that the UI could remain "responsive" to the Android event loop, which would then mean we don't get any ANRs if AIR takes a long time to respond to anything.

So that was the theory: just make that change and we shouldn't get any ANRs because from the OS perspective, events would be handled immediately (and internally, posted onto a queue for the runtime to then pick up).

In practice, where it falls down is where there are interactions with UI elements that need to be on the 'main' UI thread from the Android OS perspective. Which is mostly around Stage…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@2jfw
Comment options

Answer selected by 2jfw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants