[Scummvm-devel] Slowdowns in SCI and SAGA

Johannes Schickel lordhoto at gmail.com
Thu Nov 26 15:33:39 CET 2009


On Thu, Nov 26, 2009 at 5:55 AM, yotam barnoy <yotambarnoy at gmail.com> wrote:

> as you can tell, using Dosbox produces slightly better results.

Are you really sure? Just judging by how much time
Sci::MidiDriver_Adlib::generateSamples takes for MAME and DOSBox and
compared to how many times it was called MAME seems to take *less*
time.

Here's MAME:

>                 0.01   35.83    8539/8539
> Sci::MidiDriver_Adlib::generateSamples(short*, int) [7]

When I read it correctly it's 35.83 seconds for 8539 calls. That is
0.004196042s per call.

Here's DOSBox:

>                 0.01   51.34    2014/2014
> Sci::MidiDriver_Adlib::generateSamples(short*, int) [7]

That should be 0.025491559s per call.

When you compare it seems for the DOSBox emulator it takes ~6 times
the time for the emulation per sample generation.

// Johannes




More information about the Scummvm-devel mailing list