[Scummvm-devel] cost of palette changes

Robert Špalek rspalek at gmail.com
Mon Jun 28 23:23:34 CEST 2010


On Mon, Jun 28, 2010 at 1:48 PM, Johannes Schickel <lordhoto at scummvm.org>wrote:

>  On 06/28/2010 10:32 PM, Robert Špalek wrote:
> All I know is that it is indeed expensive and thus should be only done when
> needed. I think our MADE engine once was affected by too many palette
> operations and thus bad performance. I guess testing the engine on some
> small devices would be best to determine whether it works fine or not, at
> least I'm not sure whether we have any real rule on how often one can call
> it per second without worrying too much....
>

is anybody with a small device willing to check the headline Dragon History,
please?  the only test needed is to walk from one location to another, and
tell me whether the palette fading is fast enough.


> It might be noteworthy that the ZIP support is only available when zlib is
> available. I think some of our ports did not feature zlib support (not sure
> right now which ones though). Also when reading files from the zip archive,
> they will be first decompressed and read completely into the memory.
>

I will use compression=none, because the MP3 files inside are
incompressible.  therefore the files just need to be read into memory, which
is, of course, the intention.  concerning zlib availability, I'm not sure
how our library is implemented, but for reading uncompressed archives zlib
is not needed; one just needs to parse the archive header.

-- 
Robert Špalek <rspalek at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scummvm.org/pipermail/scummvm-devel/attachments/20100628/0eca0ea8/attachment.html>


More information about the Scummvm-devel mailing list