Rockbox General > Rockbox General Discussion

Reducing RAM usage; why not buffer_alloc?

<< < (2/2)

GodEater:
See the forum guidelines in my post above (just edited with link - sorry if you missed it.)

linuxstb:

--- Quote from: dreamlayers on August 20, 2007, 02:28:28 PM ---Is there any reason not to do this?

--- End quote ---

Yes - buffer_alloc can only be used at boot-time, so changing any of the settings you mentioned (font, language, code-page) would require a reboot in order for the setting to take effect.

There has been talk of removing that restriction - basically re-initialising Rockbox without a reboot, but afaik no-one has expressed an intention to do it.

Lear:
There's a limited form of re-initialization, but only for the swcodec playback system (e.g., to allow changes to the crossfade settings).

To allow a full re-initialization would probably require a fairly big restructuring of how Rockbox is initialized and how the buffer allocations are made. But getting the buffer allocations done in the right order isn't trivial, and has been the source of more than one hard to find bug, so a cleanup in this area could be nice.

Note that any change to a buffer-related setting would then cause playback to stop, at least temporarily, and any music would need to be re-buffered. So there are drawbacks too.

Navigation

[0] Message Index

[*] Previous page

Go to full version