When i see the systrace for gallery app,I see two threads in the gallery process - GLthread and RenderThread. How are these two different?
Asked
Active
Viewed 558 times
0
-
The threads are named by the applications and services, not by systrace, so your question is meaningless without more context. – fadden Jul 23 '15 at 14:43
-
@fadden - is it enough or shall i give more information? – Vishal Chand Jul 27 '15 at 11:43
-
It is. Now you need someone familiar with the internals of the gallery app to explain what each of those threads does. Alternatively, if you have a developer device (with `ro.debuggable` set to 1) you can just attach DDMS and double-click on the threads while the app runs to see stack trace snapshots. If you do that several times you'll get a pretty good sense for what each thread is up to. – fadden Jul 27 '15 at 15:34
-
Thanks! Will try that. – Vishal Chand Jul 29 '15 at 05:47
1 Answers
0
I'm checking a systrace result which is same as yours. There're RenderThread as well as GLThread and after some search I found out that my RenderThread is different w/ their.
For example look at this article: There're DrawFrame
or Texture upload
functions inner RenderThread.
But my systrace file shows that this stuff comes on the GLThread and my RenderThread just running but without any more details. So my conclusion is that focus on your logic stuff find out some key info such as: onDrawFrame, eglSwapBuffers, dequeueBuffer... to find out the Thread that really doing stuff.

Joshua
- 356
- 2
- 9