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.

Linux/AM5708: Qt 5.12 Web engine High CPU usage

Part Number: AM5708

Tool/software: Linux

Hi All,

I am currently facing some issues with Qt 5.12 web engine on AM5708. I am trying to run different browser sample applications on AM5708 based custom board. I am using yocto and using meta-qt5 layer for Qt. When I run examples on custom board it looks like browser applications using all the CPU utilization which makes slow performance of app. Is there any way we can use DSP/GPU core with web engine to make application performance smoother and faster. Are there any patches for Qt web engine by TI? I also run opengl based sample applications and which are not using much CPU and mostly using GPU. i measured the usage using mpuload and pvrscope binaries.

Please let me know in case of any issues or more information needed.

Thanks,

Vivek Panchal

  • Hello,

    The latest PSDK version is 5.03 and the QT version in it is 5.9.7. This is what we support.
    Please check this thread:
    e2e.ti.com/.../773459
    Hope this helps.

    BR
    Margarita
  • Hi Margarita,

    Thanks for your response.

    Can you please let me know are there any patches applied by TI to run qt web engine smoother and faster ? I have checked samples on AM571x IDK with Qt 5.9.7 version and it looks like CPU usage is higher but it also uses GPU which is not causing sluggish behavior which i am seeing on my custom board. In my case applications are not using GPU at all. What changes/patches applied by TI in TI yocto layer ( i.e., oe-layersetup ) for Qt? Are there any patches related to GPU/DSP ?

    One more thing I am not using weston/wayland. so in my case, applications will be using eglfs default in full screen mode.

    Thanks
    vivek panchal
  • Is there any update on this?
  • Hi Vivek,

    All our patches should be available for the yocto build.
    The primary Qt5 patches are under meta-arago/meta-arago-distro/recipes-qt/qt5.

    Here is something critical to enable GPU acceleration at qtbase_%.bbappend:

    GLES_EXTRA_DEPS = "libdrm wayland"
    PACKAGECONFIG[gles2] = "-opengl es2 -eglfs,,virtual/libgles2 virtual/egl ${GLES_EXTRA_DEPS}"
    QT_CONFIG_FLAGS += "-qpa ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland', 'eglfs', d)}"

    Regards,
    Manisha
  • Hi Manisha,

    Thanks for the reply. I am going through patches.

    Meanwhile i am having below query,

    I am not using wayland and weston. instead i am using eglfs and it is directly displaying in full screen mode. I hope it will not cause any issues with GPU usage. There is no any limitation like GPU only working with wayland right?

    Thanks,

    vivek panchal

  • Hi Vivek,

    Yes, you don't have to use Wayland/Weston to use GPU. eglfs  enables you to offload the graphics acceleration on GPUs. 

    Regards,

    Manisha

  • Hi Manisha,

    Thanks for confirmation.

    So if i use below configuration to build qt then should it work with GPU?

    GLES_EXTRA_DEPS = "libdrm"
    PACKAGECONFIG[gles2] = "-opengl es2 -eglfs,,virtual/libgles2 virtual/egl ${GLES_EXTRA_DEPS}"

    No qt patches which you mentioned in above location like meta-arago/meta-arago-distro/recipes-qt/qt5 as i am using meta-qt5 layer in yocto.

    changed below things in my local.conf,
    DISTRO_FEATURES_remove = "x11 wayland"

    Thanks,
    vivek panchal
  • Vivek,
    Just FYI - you can use the command "omapconf show opp" to make sure the GPU is enabled and operating at the expected frequency.

    Regards,
    Ahmad
  • Thanks for the information Ahmad. Are you talking about GPU usage enabled or not from web engine? If you are talking about Qt then i think it is enabled as i have already run qt opengl examples(i.e., cube and textures) which are not using that much CPU and they are using GPU. I have confirmed that using pvrscope binary when running opengl examples(i.e., cube and textures).
  • Hi Vivek,
    Not from the perspective of the web engine, but at the physical level. Just want to let you know how to check the GPU power and frequency state. But your comments on the qt opengl examples not using that much CPU seem to confirm it as well.

    Regards,
    Ahmad