[Qt-qml] on device performance
martin.jones at nokia.com
martin.jones at nokia.com
Fri Jan 28 03:24:01 CET 2011
Are you able to capture this problem in a small example?
Br,
Martin.
From: qt-qml-bounces+martin.jones=nokia.com at qt.nokia.com [mailto:qt-qml-bounces+martin.jones=nokia.com at qt.nokia.com] On Behalf Of ext Alexey Zaryanov
Sent: Tuesday, 25 January 2011 8:52 AM
To: Cornelius Hald
Cc: qt-qml at trolltech.com
Subject: Re: [Qt-qml] on device performance
I have some new troubles (ListView and my own C++ model):
Spent a lot of time cleaning the model (more than 100 ms on n900)
example:
void QObjectListModel::clear()
{
beginRemoveRows(QModelIndex(), 0, m_objects.count());
// bla bla
endRemoveRows();
emit countChanged();
}
And next problem. IU works well at first time, but if i change model data - performance is going down. =(
2010/12/18 Cornelius Hald <hald at icandy.de<mailto:hald at icandy.de>>
> If you aren't doing so already, I'd suggest also:
> * running using the raster graphics system (i.e. raster + GL viewport). This has an impact because so many of the items cache their drawing to pixmaps.
> * turning off sample buffers (below is what we do in qmlviewer), as long as the graphical results are acceptable to you
>
> QGLFormat format = QGLFormat::defaultFormat();
> format.setSampleBuffers(false);
> QGLWidget *glWidget = new QGLWidget(format);
> //### potentially faster, but causes junk to appear if top-level is Item, not Rectangle
> //glWidget->setAutoFillBackground(false);
> view->setViewport(glWidget);
>
> * As mentioned in an earlier reply, running fullscreen rather than maximized if possible (compositing is quite expensive, and avoiding it gives a very nice performance bump)
Thanks for the tips! Are there any similar optimizations that can be done for Symbian^1 and Symbian^3 devices?
Cheers,
Conny
_______________________________________________
Qt-qml mailing list
Qt-qml at qt.nokia.com<mailto:Qt-qml at qt.nokia.com>
http://lists.qt.nokia.com/mailman/listinfo/qt-qml
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-qml/attachments/20110128/5c292e59/attachment-0001.html
More information about the Qt-qml
mailing list