Duncan Webb wrote:
> Helmut Auer wrote:
>> Helmut Auer schrieb:
>>> Hello,
>>>
>>> I am using the latest svn version and I recognized that FreeVo is using 
>>> 20 percent of cpu load (on a 1200 Clereon machine).
>>> Just after being started.
>>> What is going wrong here ?
>>>
>>>   
>> Now my cpu load shown by top is reduced from 22 Percent to ~ 3 percent ( 
>> while doing nothing and just show the main menu ) :)
>> I changed in rc.py:      
>> 
>>  kaa.Timer(self.poll).start(0.01)
>> to
>>  kaa.Timer(self.poll).start(0.1)
>> 
>> The menu is as responsible as before and everything is fine now.
>> I'd suggest to make this change to freevo svn, its enough to poll 10 
>> times per second :)
>
> Nice work spotting the cause of the high CPU load.
>
> I missed the processor bit in your message, I'm not 100% sure what 
> effect other than reducing the CPU load this will have. I think that 
> some plug-ins count the number of times that poll is called before doing 
> something and IIRC in freevo-1.7 and below this was very approximately 
> 0.1 seconds. So a poll interval of 0.1 seems reasonable.

If plugins switch from using poll to register a timer you won't need
to poll() code anyway except to poll sdl for keyboard input. And for
that 0.1 seconds should be enough.


Dischi

-- 
Hanson's Treatment of Time:
        There are never enough hours in a day, but always too many days
        before Saturday.

Attachment: pgp1pitsXa16e.pgp
Description: PGP signature

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users

Reply via email to