Threading: background threads inherently slower than animation thread?
in
Android Processing
•
6 months ago
I'm using
thread("whatever")
to run my intensive functions (image processing) on a background thread so that I can run a progress-indicator-animation-thingy in the meanwhile in the draw loop.
The problem is that the functions take almost twice the time they do on the animation thread to run on the background thread.
I noticed that it is not the same on my PC. So do the background threads on android have a lower priority or something and are thus inherently slower than the animation thread? or is it possible to use a faster worker thread?
P.S: I'm really illiterate in this area, but just in case it helps: I noticed in ddms that my threaded functions are run on Thread-83653 the first time and then on Thread-83654 and so on.
1