Qt Performance HELP PLZ!!

Aima Ali
Hi There,

Im using the mini2440 and im having a VERY SERIOUS proplem!!

I have compiled Qt-Embedded 4.6.1 for the mini 2440.

Now my issue is that the Performance of the GUI is really bad, it takes up
to 5 seconds to open one window from another window, and atleast 1 second
till it reacts on pressing a QButton, also it takes up to 15 secs to start
a Qt application.

The application uses up 1t 100% CPU and like 70% of the memory


Whats the ebst way to accelerate this?

im using the fb to display and this are my config options: 

./configure -v \
-embedded arm -xplatform qws/linux-arm-g++ -prefix /usr/qt \
-nomake examples -nomake demos -opensource \
-no-accessibility -no-sql-sqlite -no-phonon -no-phonon-backend
-no-qt3support \
-no-scripttools -no-mmx -no-3dnow -no-sse -no-sse2 -no-cups -no-dbus
-no-glib \
-qt-libtiff -qt-libpng -qt-libmng -qt-libjpeg -qt-gfx-linuxfb
-qt-mouse-tslib -qt-gfx-qvfb \
-shared -debug



Im currenty having the QT/E libs on the sdcard and they are like 80MB,
which leads me to my 2end not so importaint qestion atm.

Is there alreaddy a Version of Qt-e on the device? and if so how can i use
it?

Whats the best way to shrink down the Qt-e libs to the minimal/requred size
to fit into the 128 MB of flash memory?

I would really appreciate any HELP! 


THANKS ALOT!!

Ananthapadmanaban
-shared -debug
 instead of building debug version build release version
-release

Vinicius 'hex' Kamakura
I've faced the same problem, and so have a few others.

The solution so far is to use the factory default kernel (friendlyarm one
.2) and filesystem and customize it. It runs a lot faster for unknown
reasons.

http://www.youtube.com/watch?v=n62555v6m3Y

check this performance

S.Onur Selamet
Hello guys thanks for finding out my video =)

I think it will be better to share the configuration parameters here also.

The OS on the mini2440 is linux. It is a modified version of root Qtopia
file-system. It has a custom build kernel (2.6.29.4). i use 2 toolchains
for arm crosscompilation first one is the angstrom toolchain and the second
one is the one came on the mini2440 DVD.

configure parameters i use for cross compiling QT

(optimized)

./configure -prefix /usr/local/Qt -fast -pch -no-qt3support -qt-sql-sqlite
-no-libtiff -no-libmng -qt-libjpeg -qt-zlib -qt-libpng -qt-freetype
-no-openssl -nomake examples -nomake demos -nomake tools -optimized-qmake
-no-phonon -no-nis -no-opengl -no-cups -no-xcursor -no-xfixes -no-xrandr
-no-xrender -no-xkb -no-sm -no-xinerama -no-xshape -no-separate-debug-info
-xplatform qws/linux-arm-g++ -embedded arm -depths 16,32 -no-qvfb
-qt-gfx-linuxfb -no-gfx-qvfb -no-kbd-qvfb -no-mouse-qvfb -opensource
-confirm-license -qt-mouse-tslib -I<path_to_tslib>/tslib/build/include
-L<path_to_tslib>/tslib/build/lib

(generic with demos,tools and examples)

./configure -release -shared -fast -pch -embedded arm -xplatform
qws/linux-arm-g++ -prefix /usr/local/Qt -qt-freetype -little-endian
-no-xrandr -no-xrender -no-xkb -no-sm -no-xinerama -no-qvfb -qt-gfx-linuxfb
-qt-gfx-vnc -no-gfx-qvfb -no-kbd-qvfb -depths 8,16,32 -no-cups
-qt-sql-sqlite -opensource -L rt

I hope you get better performance...

Christopher
Hi Guys,

i've seen the video on youtube and i'm afraid how fast qt is on this
device.
So, you told us, how to set up cross-compiling, but it would be much better
for all of if you could share your files with us.
Soy perhaps, you can upload your kernel-image & root-image for us?

Vinicius 'hex' Kamakura
Do like I said in my other post.

Cross compile the Qt library (ive tried with 4.4.3, 4.5.0, 4.6.2 with the
same results), install it in the default rootfs (the qtopia one, avaliable
in friendlyarm.net), install the embedded widgets app or any other app and
run it.

you will get the same performance as the one in the video.

S.Onur Selamet
Attachment: QTlib.zip (6.43 MB)
Here you can download the compiled minimal(does not include webkit and
script libs and fonts) qt lib files in the attachment. They should be
placed under /usr/local/Qt dir. 

File system is based on root Qtopia image and kernel is 2.6.29.4 with some
customizations such as boot logo,GPIO and some drivers. 

Most important thing is if you will develop Qt applications for mini2440
you will have to cross-compile QT in your development machine to be able to
cross-compile your applications. So, sharing the root-fs image with kernel
will not be enough. You will also setup your development environment with
necessary toolchains, cross-compiled libraries (tslib,zlib etc.) and a
proper installation of QT creator SDK configured to use cross-compiled QT
qmake.

If you think these are too much for you, hire a qualified engineer or if
you are an engineer being assigned this task do read more and understand
the details.

Stéphane
Hi here !

I am currently the same graphic performance issues...
I am trying to do an animation with the QPropertyAnimation class, but it
run very slowly and laggy... (what I am trying to animate/move is a Qwidget
with a few buttons...)

From this link : http://zrusin.blogspot.com/2006/10/benchmarks.html , I was
wondering if opengl will increse the performance or not...
Does anyone here have successfully installed opengl on the mini2440 ? What
are the performances ?

Thanks in advance for your help !

Stephane.

Ans: S.Onur Selamet
http://ldc.usb.ve/docs/qt/qmake-variable-reference.html#qmake-cflags-rel...

Make this flag -O2 and see the performance. But don't forget this will be
release version you can not debug the application. You dont need to hire a
qualified engineer. just read the manual.

Artistik yapma olm.