[Scummvm-tracker] [ScummVM] #10248: MT-32 emulator music stutters badly (many if not all games)
Colin Snover
trac at scummvm.org
Sat Sep 30 02:36:51 CEST 2017
#10248: MT-32 emulator music stutters badly (many if not all games)
-----------------------+------------------------
Reporter: Laylia27 | Owner: (none)
Type: defect | Status: new
Priority: high | Component: --Other--
Resolution: | Keywords: midi mt-32
Game: |
-----------------------+------------------------
Comment (by csnover):
Certainly I would expect to see the core responsible for running the MT-32
emulator reaching 100% periodically since that is the behaviour that I see
here (on macOS) during MT-32 emulator drop-outs, but unfortunately I do
not know enough about Windows scheduling or how Task Manager does
performance sampling to speak with authority on why it appears to be
running well below the maximum limit. My guess is that Task Manager’s CPU
sampling isn’t granular enough to see the CPU spikes, but I think the best
thing to do here is just to test later on Windows with an optimised build
and then see if this problem continues to occur or not, and if it does,
then to use an actual performance profiler instead of guessing at what
Task Manager thinks is happening.
At some point I would really like to move the emulator to its own thread,
which would reduce the risk of drop-outs as low as it could probably ever
go, but this probably requires some larger discussion and architectural
changes to OSystem since the ability to create new threads was removed
several years ago and using a timer instead doesn’t really solve the
problem.
--
Ticket URL: <https://bugs.scummvm.org/ticket/10248#comment:6>
ScummVM <https://bugs.scummvm.org>
ScummVM
More information about the Scummvm-tracker
mailing list