qt-interest@trolltech.com
[Top] [All Lists]

Re: CPU Utilization issue

Subject: Re: CPU Utilization issue
From: "R. Reucher"
Date: Wed, 2 Mar 2005 09:55:43 +0100
On Wednesday 02 March 2005 09:43, somesh s wrote:
> Hi,
>
> I set the optimization of the pixmap to BestOptim &
> CPU Utilization cam down by 30%. (Now it is 40-50% as
> against 70-80% earlier).
>
> pixmap->setOptimization(QPixmap::BestOptim);
>
> With regards
> Somesh S. Shanbhag
I followed the thread and would like to add the following to it:

You are still generating too much disk I/O, as someone already mentioned... 
either do some sort of IPC between the two programs, or - if you are unable 
to change the image generator's code - read and write the frames from a RAM 
disk. There is still a lot of waste in CPU utilization in the latter case, 
but at least you would benefit of a greater I/O performance (eating some 
memory, of course).

On the other hand, how do you know if the image generator is ready in 
producing a frame? You somehow need to flag the other process, if you don't 
want to waste even more CPU time (cycling in a loop, waiting for the 
image)... IMHO, this means IPC anyway.

Just my 2ct tips...

René
-- 
René Reucher
BATCOM IT Services

Tel: +49 160 94957806
FAX: +49 6359 205423
rene.reucher@xxxxxxxxxxxxx
http://www.batcom-it.net/
 
Drive defensively.  Buy a tank.

--
List archive and information: http://lists.trolltech.com/qt-interest/

<Prev in Thread] Current Thread [Next in Thread>