[Uml-devel] High CPU load even in idle state ( hidden, no action is running )

Sebastian Stein seb_stein at gmx.de
Thu Jul 22 06:17:11 UTC 2004


Achim Spangler <Achim.Spangler at mnet-online.de> [040722 14:52]:
> Detect:
> Simply check with kdbg where the operation is currently, if the program is 
> interrupted in invisible-state.

I think you can also use kcachegrind and valgrind for this purpose.
 
> => always something with Qt update events
> As I have this high load only with a lot of diagrams, the QCanvas and 
> QCanvasView classes were suspectible.
> 
> Solution:
> Switch the update OFF for the QCanvas of a hidden diagram
> ( QT-Doc states for QCanvas::setUpdatePeriod()
>   "If ms is less than 0 automatic updating will be stopped. " ),
> and switch it back to ON on show event.
> 
> Result:
> Now even my large project is at a very low CPU load!
> 
> Now the work with my project is again smart and quick.

Does this have any drawbacks on diagram repainting or something else? Have
you come across any problems with the patch?

Sebastian 
-- 
http://www.hpfsc.de/ - die Seite rund um:
Assembler, Bundeswehr, TFT LCDs, Halle/Saale, Fahrradtouren, Neuseeland,
Wanderstaat Mauma, Raumschiff USS Nathan, Enemy Room, MLCAD Tutorial




More information about the umbrello-devel mailing list