June 12, 2012

fekda778 fekda778
Lab Rat
10 posts

the speed of applications

 

Hi,

I have been using mini2440 and micro2440 too and I am absolutely satisfied with them. I use Qt too. I have got only one problem. But this makes me crazy. :-) My applications are slow. I absolutely cannot figure out what the problem is.

When I wrote “slow” I meant it is 2-4 seconds between any two GUI operations. So it is a really big problem to me. I haven’t found anybody with the same problem even though I had visited many forums. I tried with compiled Qt as well to avoid my errors but the result was the same. I also was thinking of switching optimization but it was said that it wouldn’t work.
Any help or advice would be great. :-)

I made a video to illustrate my problem. You can reach it on the following link:

http://www.youtube.com/watch?v=IfDc6_TYRkE&feature=youtu.be

The languages is not important. But you can see the long delay.

Best luck for us, :-)
David

6 replies

June 12, 2012

pritamghanghas pritamghangh..
Lab Rat
26 posts

if you have a profiler for your setup, and see which parts of the application take most time. You can try valgrid/calgrind. Mostly its a matter of compiling and running those application.

June 13, 2012

fekda778 fekda778
Lab Rat
10 posts

Thanks, I will check it. D.

June 13, 2012

fekda778 fekda778
Lab Rat
10 posts

There is one more thing. I compiled it for host too. It worked perfectly. My host is a ubuntu under VMplayer. So the host is not fast.
David

June 13, 2012

SteveKing SteveKing
Lab Rat
105 posts

Not sure if this will help, but when we were developing on a system with similar specs we found that style sheets and complex layouts were the slowest points in our application.

June 13, 2012

fekda778 fekda778
Lab Rat
10 posts

Hi,
I am again. I have checked what you had recommended.
As I mentioned there is no problem in the environment of my host.
Is it true, that I cannot use this on my mini2440? (I am not sure, because this is the first time I try to use valgrind).

I have just seen your answer. I agree with you, that there are some widgets which are a bit slower than others. But I suppose some should work better. I would improve them. Thank you really. :-)

David

June 15, 2012

fekda778 fekda778
Lab Rat
10 posts

I have read that different Qt has different speed. Therefore I would like to compile the newest, maybe It is enough fast.
I downloaded it. I started to compile it, but I found some differences.
1. The g++.conf file has been devide into two different file. Both of two files contain flags for optimization. Where I can switch of the optimization?
2. I cannot configure. The old one that I used until yet is the next:
3. /configure -embedded arm -xplatform qws/linux-arm-g++ -prefix /usr/local/Qt -qt-mouse-tslib -little-endian -no-webkit -no-qt3support -no-cups -no-largefile -optimized-qmake -no-openssl -nomake tools -qt-sql-sqlite -no-3dnow -system-zlib -qt-gif -qt-libtiff -qt-libpng -qt-libmng -qt-libjpeg -no-opengl -gtkstyle -no-openvg -no-xshape -no-xsync -no-xrandr -qt-freetype -qt-gfx-linuxfb -qt-kbd-tty -qt-kbd-linuxinput -qt-mouse-tslib -qt-mouse-linuxinput

But it doesn’t work. I got the next message:
qt-gif: invalid command-line switch
-qt-gfx-linuxfb: unknown argument
-qt-kbd-tty: unknown argument
-qt-kbd-linuxinput: unknown argument
-qt-mouse-tslib: unknown argument
-qt-mouse-linuxinput: unknown argument
You have not explicitly asked to use pkg-config and are cross-compiling.
pkg-config will not be used to automatically query cflag/lib parameters for
dependencies

If it is possible I would like to compile with static flag to reach better speed. How can I do it?
Thank you, D.

 
  ‹‹ New Raspberry Pie batch?      Will Qt run on BeagleBone? ››

You must log in to post a reply. Not a member yet? Register here!