Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Rockbox mail archive

Subject: Re: themes, skins, backdrops and RAM usage... (i.e sure to be controversial)

Re: themes, skins, backdrops and RAM usage... (i.e sure to be controversial)

From: Jonathan Gordon <jdgordy_at_gmail.com>
Date: Tue, 22 Dec 2009 11:05:43 -0800

2009/12/22 pondlife <pondlife_at_ntlworld.com>:
>
>> Its not possible to find out how much RAM a theme needs without fully
>> loading it
>
> Not possible to parse without loading?  I'll agree it'd be quite a bit of
> work/code...just trying to throw some ideas in.
>
> I wonder if the plugin buffer would be useful for a test load? Or stop
> playback and grab the audio buffer?  Loading a theme will need a spinup
> anyway, so a rebuffer isn't too expensive...
>
> pondlife
>
>
>
>

loading the theme first into the plugin buffer means loading and
parsing it twice, like I said before, there is just way too much
pointer use to copy the whole buffer or resize it once its loaded the
first time. We can't use the audio buffer for this, because doing that
would mean wasting a massive amount each time a new theme is loaded
(remember, there is no way to restore ram to the audio buffer.
Received on 2009-12-22


Page was last modified "Jan 10 2012" The Rockbox Crew
aaa