PDA

View Full Version : GraphicsView performance



nileshsince1980
19th September 2007, 07:02
Hi
I am new to QT and I have developed an applcation in QT 4.2 using GraphicsView.
I am showing 15K > rectangles(using drawEllipse) and almost 30K line between them. But zoom in/out is very slow, loading time is also too slow.
1. How to improve performance.?
2. How to use QTherad to plot/add ellipse items simulantenously in GraphicsScene. ???
3. I am doing on Windows using Microsoft Visula Studio 2003 So how to do profiling ???
Please help me

marcel
19th September 2007, 07:14
1. How to improve performance.?

Tough question.
See: http://www.qtcentre.org/forum/f-qt-programming-2/t-graphicsview-performance-problems-5684.html
and
http://www.qtcentre.org/forum/f-qt-programming-2/t-qt3-more-fast-than-qt4--9032.html



2. How to use QTherad to plot/add ellipse items simulantenously in GraphicsScene. ???

You can't do it simultaneously due to the currently employed programming paradigm.
So, even if you have two threads posting items to the scene, the scene will be able to add only one at the time.



3. I am doing on Windows using Microsoft Visula Studio 2003 So how to do profiling ???

You have to choose from commercial applications: DevPartner, Intel ThreadChecker( I think it has a profiling option) and the one Trolltech uses for Qt:Rational Purify.

nileshsince1980
19th September 2007, 12:19
Thanks Marcel .
Thnaks for information