This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM3358: SGX 2D acceleration issue

Part Number: AM3358

hello :

I have changed to am335x newest 06.01.00.08  linux sdk ,I want to use the 2d accelaration

because there is only one app run on my device  and full screen,  so I run  /etc/init.d/weston stop 
I export QT_QPA_PLATFORM="eglfs"
when I run my xwidget demo,and It show cpu is 87%,
when I run lsmod ,result is as following:
root@am335x-evm:~# lsmod  
Module                  Size  Used by
pvrsrvkm              397312  2
 
When I kill my xwidget ,then
root@am335x-evm:~# lsmod
Module                  Size  Used by
pvrsrvkm              397312  0
So I confirm that gpu is working , Because when my program run ,some module use the pvrsrvkm module.
but problem is that why cpu  rate is so high 87%.
Can you help to analyze why the small demo cpu rate so high ?
There is other program which also use 2d qt5 opengl widget ,but when use am3358 the cpu is always 100%,but the same program run on device with  imx6q
with gpu on, the cpu is very low,10% cpu.
Why? How to enable the 2d accelartion?
I attach my xwidget demo.Can anyone help?
Best regards
wangl

  • Hello,

    By default, TI integrates various examples from Qt in our PSDK. As an experiment, please try running the examples under the directory "/usr/share/qt5/examples/opegl/textures" or /usr/share/qt5/examples/opengl/qopenglwidget". While running the previous examples, the CPU load is about 10-15%.

    Regards,
    Krunal

  • hello Krunal:

    Can you take a look at the 2dpainting example  /usr/share/qt5/examples/opengl/2dpainting

    ,the cpu load is 40%!

    /usr/share/qt5/examples/opegl/textures  or  /usr/share/qt5/examples/opengl/qopenglwidget" ,both cpu load are  under 10% ,

    however ,they are 3d !

    Can you make the 2dpainting cpu load as the textures? Then I think 2d acceleration is fine。

    Best regards

    wangl

  • Hello wangl,

    Please keep in mind that the 2dpainting is created by Qt and the following page has more information. The example is performing painting operations on QWidget and QGLWidget but the hardware acceleration is only performed on QGLWidget. As an experiment, I went to the window.cpp file and commented out the following line:  connect(timer, &QTimer::timeout, native, &Widget::animate);. The CPU usage went from 40% to 22% and it is up to the user to further optimize the Qt application. 

    Regards,
    Krunal

  • Hey Krunal:

    Do you mean that there is no way to decrease the cpu load?

    The only way is to use QGLWidget ?However there is lots of QLabel and other class inherit from QWidget in customer APP.

    And 22% cpu load is also too high ,why the 3d example:textures  is under 10% ?

    Can you make the gpu have  same effect  under 10%?

    Best regards

    wangl

  • Hello wangl,

    As stated in my previous post, TI did not create the example application and it was created by Qt. Please reach out to the Qt community for further assistance with QGLWidget and QLabel.

    Regards,
    Krunal

  • Dear Krunal:

    When I  run the qopenglwindow example,

    the text draw by the example can  not be shown, 

    And it report Fontconfig error : cannot load default config file.

    Then I copy the directory  /etc/font   from  tisdk-rootfs-image-am335x-evm.tar  to my system,but there is still not text come out .

    Do you know why?

    There is text  using the sdk filesystme tisdk-rootfs-image-am335x-evm.tar. I do not know  which part is missing.

    Best regards

    wangl

  • Hello wangl,

    I recommend you to please compare your current file-system build with the working setup. Also, please refer to the following thread as a reference:
    1. 

    Regards,
    Krunal