[Scummvm-devel] R: Re: R: Re: Dynamic Plugins (uncached) - optimization

Johannes Schickel lordhoto at gmail.com
Sun Jan 26 17:16:18 CET 2014


On 01/26/2014 04:44 PM, sunmax at libero.it wrote:
> Hi Johannes,
>
>> I think it would be better to find out why loading is that slow first
>> and see whether we cannot optimize that before we try to implement some
>> more complicated solution.
> 1) PS2 USB 1.0 is not going to get any faster, no matter how long we
> investigate it.
>
> It's only efficient if we load a single plugin to play and add new games.
>
> 2) The PS2 C libs FILE implementation is suboptimal indeed (not the ScummVM
> backend/fs the PS2 SDK one).
>
> Rewriting PS2 C libs internal file handling is an order of magnitude more
> complex than adding a static table to ScummVM, I think.
>

It's right that USB 1.0 isn't going to get any faster. However, what's 
the throughput of USB 1.0? ~1.5MB/s? So for 30 MB (how much memory take 
all the plugins anyway?) of plugins we get ~20s time loading all the 
plugins from disk into memory. Even when the overhead would be 1/3 we 
still are only at 30s. That sounds vastly different from the 15s vs 
1m40s you mention, which sounds like loading takes 85s.

Did you try to measure how long loading each individual plugin takes 
(i.e. check how long DLObject::load runs)?

// Johannes




More information about the Scummvm-devel mailing list