PDA

View Full Version : text player display code



Triode
2005-05-16, 12:43
Dean (plus others interested)

I've been looking at the possibility of porting my new graphics display code to the text players. The idea being to align the logic
used for updates and scrolling, removing scrollBottom and meaning that in as far as possible text and graphics players do the same
thing [including the scrollonce mode].

It looks to me to be possible and I have a working prototype for most functions, but wanted to get some feedback before doing any
more on it. A side effect is a small cpu gain - especially for single line scrolling. However it won't be as low as graphics
scrolling as it still does all the character VFD manipulation everytime a screen is drawn. Scrolling in double mode is also remains
very cpu intensive. (I quess people don't tend to do this?)

So a few questions before I progress:

1) Is it worth doing?
2) I can make single line [line2] scrolling display overlay2 and update it whenever update is called (as for graphics players) - is
this the desired behaviour?
3) Double mode does not display any overlays (static or scrolling), whereas these are displayed on graphics players - what is the
desired behaviour [can probably display text overlays, special characters needs more thought as they don't naturally double]?
4) I can make the new routines methods in Player.pm rather than in Display/VFD/Animation.pm - and then align with the methods in
SqueezeboxG.pm (potentially combining some of them to avoid code duplication). Is this the desired way forward, it would
essentially depreciate most of Animation.pm.
5) Is the EasterEgg animation still used (I can't replicate this so would keep as is and retain in Animation.pm) - I couldn't manage
to trigger it.....

Adrian

Fred
2005-05-16, 15:48
> Scrolling in double mode is also remains very cpu intensive. (I quess
> people don't tend to do this?)

If you mean having the player scroll the song title while playing it,
then my players do that all the time. Given their location, the 2 lines
display is too small to read.

Fred


Triode wrote:
> Dean (plus others interested)
>
> I've been looking at the possibility of porting my new graphics display
> code to the text players. The idea being to align the logic used for
> updates and scrolling, removing scrollBottom and meaning that in as far
> as possible text and graphics players do the same thing [including the
> scrollonce mode].
>
> It looks to me to be possible and I have a working prototype for most
> functions, but wanted to get some feedback before doing any more on it.
> A side effect is a small cpu gain - especially for single line
> scrolling. However it won't be as low as graphics scrolling as it still
> does all the character VFD manipulation everytime a screen is drawn.
> Scrolling in double mode is also remains very cpu intensive. (I quess
> people don't tend to do this?)
>
> So a few questions before I progress:
>
> 1) Is it worth doing?
> 2) I can make single line [line2] scrolling display overlay2 and update
> it whenever update is called (as for graphics players) - is this the
> desired behaviour?
> 3) Double mode does not display any overlays (static or scrolling),
> whereas these are displayed on graphics players - what is the desired
> behaviour [can probably display text overlays, special characters needs
> more thought as they don't naturally double]?
> 4) I can make the new routines methods in Player.pm rather than in
> Display/VFD/Animation.pm - and then align with the methods in
> SqueezeboxG.pm (potentially combining some of them to avoid code
> duplication). Is this the desired way forward, it would essentially
> depreciate most of Animation.pm.
> 5) Is the EasterEgg animation still used (I can't replicate this so
> would keep as is and retain in Animation.pm) - I couldn't manage to
> trigger it.....
>
> Adrian

Triode
2005-05-17, 13:39
> If you mean having the player scroll the song title while playing it, then my players do that all the time. Given their location,
> the 2 lines display is too small to read.
>
> Fred
>
Guess I was a bit premature with that. Out of interest how does it impact your server cpu. I see 30+% for double text scrolling on
my server [in comparison to 2% for scrolling on a graphics player..] But I assume you have more power than my lowly pentium 3!

Anyway the changes I was proposing (still am if anyone is interested!) won't improve cpu for double line scrolling on text player..

Adrian