[Maf] bugs and questions :-)

Christopher Ottley xknight at users.sourceforge.net
Sat Feb 26 09:38:38 EST 2005


Molle Bestefich wrote:

>Then, every second or so, sleep the amount of time that sleepTime indicates.
>That would throttle CPU usage down to 50% when the user clicks another
>Firefox window and the 'Loading' dialog loses focus, and back up to
>100% when the window receives focus again?
>
The problem is that events aren't processed until the MHT handler lets 
go, so even a delayed sleep like the one you suggest wouldn't have much 
of an effect. Then there's the problem of multiple windows open and 
their events firing. Really, the timeout solution started off and 
continues to be a bad hack, but one that works so far. :). I really 
don't want to make it even more complicated than it is right now, but 
thanks for the suggestion. :).

Regards,
Christopher.




More information about the Maf mailing list