VOGONS


First post, by orac81

User metadata
Rank Newbie
Rank
Newbie

I have recently made an old DOS checkers playing program of mine open source.

(Dynamo Draughts:Dynamo Draughts 9.18, vintage DOS game with source.)

Now on (rough) testing, both directly in DOS and under DOSBOX emulation in Linux with a fixed depth search (IE identical task for both) DOSBOX seems to be around 100 times slower than running native code.
Has anyone considered or tried adding a JIT Compiler to DOSBOX? Or is there another emulator that does this? The Amiga emulator WinUAE does have a JIT Compiler, which gives an improved performance. There are some programs that don't work with it, so it needs to be easy to switch it off.

Thoughts?

https://github.com/orac81

Reply 1 of 5, by jmarsh

User metadata
Rank Oldbie
Rank
Oldbie

It already has one, that's what the dynamic core does (set core to either auto or dynamic in the config).
It will still never be as fast as native code executed on the same machine because that's just how emulation overhead works - you don't get extra features at zero cost.

Reply 2 of 5, by Azarien

User metadata
Rank Oldbie
Rank
Oldbie

Still, 100 times slower seems like huge overhead…

Reply 3 of 5, by orac81

User metadata
Rank Newbie
Rank
Newbie

Ah ok, I was using an older DOSBOX, I will dig around and try that out, thanks.

https://github.com/orac81

Reply 4 of 5, by leileilol

User metadata
Rank l33t++
Rank
l33t++

IIRC certain downstreams carry DOSBox binary without a dynamic recompiler for security reasons, so you're likely better off compiling DOSbox from the SVN yourself.

apsosig.png
long live PCem

Reply 5 of 5, by jmarsh

User metadata
Rank Oldbie
Rank
Oldbie

Rather than a security risk, I think it's because 0.74 was released before the dynamic_x86 core was 64-bit compatible so any 64-bit PC builds only use the slower "generic" dynamic core.