pherthyl: I have that flag set already in the view and I did notice a boost in speed. Thanks!
Since Last time I have reimplemented the QGraphicsScene::drawItems() function and this sped up redraw a bit (entirely skip drawing of child items when I only need to draw parent).
After testing, I have found that my drawing routine is moving very fast compared to the loading of the said 100,000-400,000+ items from the QAbstractTableModel. The model data is saved in a SQL database (I'm not working on that part so I'm not sure of the specifics of that database.
I guess now the question is how to get that data out in a fast way? For now, I just go through the list one at a time and create a QGraphicsItem and set the proper data. This process is taking 3.4 sec on avg. for 136331 items (tested!) For this same project it loads 2 types of data into objects; one is much larger than the other. The smaller set takes just 1.5 secs. and total time from click to the view being populated is around 7-8 secs.
If this were the largest project I'd be done; but, the largest project takes 3x as long to load.
is this good or not?
Also, should I open a new thread for this?
JW
sw developer




Reply With Quote


Bookmarks