[PyQt] QGraphicsScene/Item/View optimisation
Frédéric
frederic.mantegazza at gbiloba.org
Fri Feb 6 12:34:40 GMT 2009
Le 5/2/2009, "Grissiom" <chaos.proton at gmail.com> a écrit:
> I think you may try some CacheFlag or OptimizationFlag in QGraphicsView, see:
>
>http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qgraphicsview.html#CacheModeFlag-enum
>http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qgraphicsview.html#OptimizationFlag-enum
I tried these flags, but they didnt change anything :o(
I attached a short example to show my problem. As soon as the crosshair
starts to move, the CPU goes to 100%!
Any idea to improve that code?
--
Frédéric
-------------- next part --------------
A non-text attachment was scrubbed...
Name: graphics_speed.py
Type: text/x-python
Size: 4222 bytes
Desc: not available
Url : http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20090206/ecd8a45c/graphics_speed.py
More information about the PyQt
mailing list