TI J6: How to find if my application is using GPU

烂漫一生 提交于 2019-12-20 05:19:07

问题


I am trying to make use of the GPU present in TI Jacinto 6 target. I have compiled the QT5 opengl examples. I am able to run the qt5 opengl examples on TI J6. Now, I want to know if the application running is GPU accelerated or not. How can I find out?


回答1:


Qt doesn't magically GPU-accelerate the entire application. Widgets are not accelerated unless they derive from QOpenGLWidget. Qt Quick 2 is accelerated by default; there's an option of using the software renderer on hardware that doesn't support OpenGL ES 2. Qt Quick 1 is accelerated if you set a QOpenGLWidget as a viewport on the QGraphicsView.




回答2:


Launch the application with QSG_INFO=1 in the environment. This will print Qt Scene Graph logs on the console including which render loop is used. To find whether hardware acceleration is used, check the GL_VENDOR and GL_RENDERER prints in the Qt Scene Graph log. For example, on TI Jacinto 6 platform, following are the logs:

QSG: texture atlas dimensions: 2048 x 1024

R/G/B/A Buffers: 8 8 8 8

Depth Buffer: 24

Stencil Buffer: 8

Samples: 0

GL_VENDOR: Imagination Technologies

GL_RENDERER: PowerVR SGX 544MP

GL_VERSION: OpenGL ES 2.0 build 1.9@2253347

Above logs show that OpenGL ES 2.0 version is used with GPU PowerVR SGX 544MP.



来源:https://stackoverflow.com/questions/38349582/ti-j6-how-to-find-if-my-application-is-using-gpu

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!