How to use the GPU acceleration in QT imx8m Plus?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to use the GPU acceleration in QT imx8m Plus?

3,367件の閲覧回数
charleshuang
Senior Contributor II

Hi NXP Team

We need to use the GPU acceleration in QT.

How to use the GPU acceleration in QT imx8m Plus?

I try to add shell script to run QT app (/home/root/myapp).

My Shell script : 

---------------------------------------------------------------------------

#!/bin/sh

export XDG_RUNTIME_DIR=/run/user/0

export WaylandEnable=true

export QT_QPA_PLATFORM=wayland-egl

export KWIN_OPENGL_INTERFACE=egl_wayland

/home/root/myApp

----------------------------------------------------------------------------

But myapp cpu loading is still over 90%.

charleshuang_0-1629967269972.png

 

We need to enable the nxp GPU acceleration.

How to do add GPU acceleration in myQT app?

Thanks.

0 件の賞賛
返信
2 返答(返信)

3,360件の閲覧回数
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello CharesHuang,

 

The QT is activated by default in MX8MPlus, if you see cpu at 70 or 80% is because you have not using QT, you can enable gpu profiler in your system and see how much percentage of GPU is used, on the graphics user guide there are the step to enable.

 

Regards

0 件の賞賛
返信

3,344件の閲覧回数
charleshuang
Senior Contributor II

Hi NXP

Thanks form your replay.

About your replay  (if you see cpu at 70 or 80% is because you have not using QT).  

We use the standard QT create tools and include NXP imx8m plus sdk(toolchain), then compiler it and create QT app.

Why do you mean I have not using QT? 

We used the "Qt Spline chart" in my QT app. How to do "add NXP GPU acceleration (OpenGL-ES)" ?

Because the QT Spline chart is standard in QT.

So ,I need to used the NXP Library (OpenGL-ES) ,right?  How to do ?

 

 

 

0 件の賞賛
返信