How to use the GPU acceleration in QT imx8m Plus?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to use the GPU acceleration in QT imx8m Plus?

1,987 Views
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 Kudos
2 Replies

1,980 Views
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 Kudos

1,964 Views
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 Kudos