PDA

View Full Version : Performance issues with



mherger
2005-03-10, 15:39
I'm using Slim::Music::Info::infoFormat() in my MusicInfo screensaver. And
it seems to be negatively influencing the SlimServer's behaviour. These
are typical CPU loads (Athlon 1GHz):

- "Now playing..." screensaver, no scrolling : <2%
- "Now playing..." screensaver, scrolling : <2%
- MusicInfo, no scrolling: 10%
- MusicInfo, scrolling (long text): 20%

Is there something I can do to optimise this?

--

Michael

-----------------------------------------------------------
Help translate SlimServer by using the
StringEditor Plugin (http://www.herger.net/slim/)

Triode
2005-03-10, 15:46
Michael,

Can you use the display_cache - see standardTitle? [This needs a fix as per my previous email debate on scrolling]

In general, the scrolling code calls the relavent function to define the display lines function every 30 seconds and the other
displays call if every 60 seconds. So this looks right. What you need to look at is something which ensure the lines function runs
fast enough. For standardTitle I get good performance with the cache and very poor performance without - hence see if you can use
the display_cache. If not, you probably want to do some caching of your own.

Adrian
----- Original Message -----
From: "Michael Herger" <slim (AT) herger (DOT) net>
To: "SlimServer Developers" <developers (AT) lists (DOT) slimdevices.com>
Sent: Thursday, March 10, 2005 10:39 PM
Subject: [Developers] Performance issues withSlim::Music::Info::infoFormat()?


> I'm using Slim::Music::Info::infoFormat() in my MusicInfo screensaver. And it seems to be negatively influencing the SlimServer's
> behaviour. These are typical CPU loads (Athlon 1GHz):
>
> - "Now playing..." screensaver, no scrolling : <2%
> - "Now playing..." screensaver, scrolling : <2%
> - MusicInfo, no scrolling: 10%
> - MusicInfo, scrolling (long text): 20%
>
> Is there something I can do to optimise this?
>
> --
>
> Michael
>
> -----------------------------------------------------------
> Help translate SlimServer by using the
> StringEditor Plugin (http://www.herger.net/slim/)
>
>

mherger
2005-03-10, 16:57
Adrain

> Can you use the display_cache - see standardTitle? [This needs a fix as
> per my previous email debate on scrolling]

Excellent! Yes, it seems that this does the trick. I'm at <2% now, as with
the other screensavers. Thanks a lot!

--

Michael

-----------------------------------------------------------
Help translate SlimServer by using the
StringEditor Plugin (http://www.herger.net/slim/)