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.

Help! Why does it takes so long to execute the painter program using OMAP-L138? Thanks.

Other Parts Discussed in Thread: OMAP-L138, OMAPL138

Dear TI.

We want to use OMAP-L138 to create some lines and display these lines on the TFT LCD.  The painter program is based on QT library.

But recently we found that it took too long (about 10ms)  to create these lines.  Could you please kindly help me to find the reason?

The code are as belows, it took about 10ms to execute the code which are marked in the code.

 

The execute results:

 

Blow are CPU and OS information:

CPU Clock = 456MHz

 

LINUX VERSION 2.6.33-RC4 (TL@TL-DESKTOP) (GCC VERSION 4.3.3 (SOURCERY G++ LITE 2009Q1-203) ) #32 PREEMPT FRI SEP 13 00:16:13 HKT 2013                      

 

libQtCore.so.4.7.0: ELF 32-bit LSB shared object, ARM, version 1 (SYSV), dynamically linked (uses shared libs), stripped

 

libQtGui.so.4.7.0: ELF 32-bit LSB shared object, ARM, version 1 (SYSV), dynamically linked, stripped

 

arm-2009q1/bin/arm-none-linux-gnueabi-gcc-4.3.3: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.2.5, stripped

 

  • Hi York,

    Welcome to the TI E2E forum. I hope you will find many good answers here and in the TI.com documents and in the TI Wiki Pages. Be sure to search those for helpful information and to browse for the questions others may have asked on similar topics.

    This device forum is good for device-specific or hardware/driver questions.

    I look at this question in a way that the member function, "setpen" of QT class, "Qpainter" is taking more time irrespective of the platform. I mean to say, It should probably take  the same time on Desktop Machine which runs the linux version 2.6.33 when compared to OMAPL138.

    And also, QT libraries are third party software for which we do not have more support.

    Not a QT expert but few suggestions though.

    1. Please do check any initializations are missing for Qpainter and Qpixmap; Whether the Qpainter needs to be linked to a widget in which it has to paint ( i.e., draw poly line e.t.c)???

    2. QT Performance Tips are given http://processors.wiki.ti.com/index.php/Qt_Tips#Performance_Tips. Please have a look.

    3. Try to use optimized classes and functions.of QT. You Can consider posting your question to QT forums if any.

    4. Measure the time separately for each line of code to narrow down which is taking more time ( setpen/drawpolyline); accordingly you can focus on looking for an alternate method to perform the same.

    5. From the configuration/usage front, if anything is missed, a QT based demo,i.e,  standard Mandelbrot fractal demo was already available for OMAPL138. For more info visit http://processors.wiki.ti.com/index.php/C6Run_QT_Fractal_Example. You can run and debug this demo to check how fast the QT functions are executed by OMAPL138.

     

    Regards,

    Shankari

     

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

    Please click the Verify Answer button on this post if it answers your question.
    --------------------------------------------------------------------------------------------------------

  • Thanks for your suggestions, Shankari.