VOGONS


First post, by RaVeN-05

User metadata
Rank Oldbie
Rank
Oldbie

Does its technically possible to raise CPU Hz to actual host OS ? or close to it? or much more Hz than it can have now?

What the problem? if we run dosbox on x86 or x64 architecure, so why not just make dosbox run on fly convert of 16 bit to 32 or to 64 by adding empty assemble instructions? what i mean

if we had AX (16) than add zeros and raise to EAX (32)

can instructions run on actual processor? everything need to be emulated for program sucessful startup, and to speedup run instructions on CPU directly? or by on fly convertor?

P.S. Another question, did DOS emulators or virtual machines exist with much more Hz of CPU?

https://www.youtube.com/user/whitemagicraven
https://go.twitch.tv/whitemagicraventv

Reply 1 of 12, by ripa

User metadata
Rank Oldbie
Rank
Oldbie

Does its technically possible to raise CPU Hz to actual host OS ? or close to it? or much more Hz than it can have now?

You can set cycles=3000000 to emulate 3GHz, but it won't run in real-time.

What the problem? if we run dosbox on x86 or x64 architecure, so why not just make dosbox run on fly convert of 16 bit to 32 or to 64 by adding empty assemble instructions? what i mean

if we had AX (16) than add zeros and raise to EAX (32)

can instructions run on actual processor? everything need to be emulated for program sucessful startup, and to speedup run instructions on CPU directly? or by on fly convertor?

That's called dynamic recompilation and Dosbox is already doing it. Feel free to try to implement a faster recompiler.

It might be technically possible (or not - you need to read the Intel and AMD manuals to figure out) to switch the processor from long mode to VM86 mode on the fly to execute 16-bit code natively. Or use some virtualization extensions. There's this proof of concept:
https://github.com/leecher1337/ntvdmx64

Last edited by ripa on 2016-10-05, 22:30. Edited 1 time in total.

Reply 2 of 12, by Jorpho

User metadata
Rank l33t++
Rank
l33t++
ripa wrote:

It might be technically possible (or not - you need to read the Intel and AMD manuals to figure out) to switch the processor from long mode to 16-bit mode on the fly to execute 16-bit code natively. Or use some virtualization extensions. There's this proof of concept:
https://github.com/leecher1337/ntvdmx64

To be clear, that is a complete CPU re-implementation and not something that relies on switching the mode of the CPU, if I'm not mistaken.

I recall reading somewhere that while you could sort of persuade a 64-bit CPU to execute 16-bit code, it's pretty useless when it comes to running legacy code because of problems relating to the memory addressing.

Reply 3 of 12, by ripa

User metadata
Rank Oldbie
Rank
Oldbie

You're right, I should have read the readme.txt properly.

I wonder if it's possible to switch only one processor core to a legacy mode, which would allow VM86 mode to be used on that, while leaving the rest of the cores for the operating system and normal applications.

Reply 4 of 12, by Jorpho

User metadata
Rank l33t++
Rank
l33t++

Suffice to say, if there was some easy solution to this problem, someone would have implemented it long ago and it would be readily available in many forms by now.

Reply 5 of 12, by RaVeN-05

User metadata
Rank Oldbie
Rank
Oldbie

NTVDM somehow at Windows XP SP3 32bit able to play Chasm The Rift at full speed (Framerate) an by testing with dos app it reports actual Hz of my CPU while in dosbox i had very slowdown game , and dos app reports low CPU Hz.
It would be very helpful for that game and for Pyl game too.

Maybe some kind of JIT Recompiler? or what ever else. Ok the most interesting thing, Dolphin (GameCube emulator) can run X-Men Legends 1 at full speed, Resident Evil 4 at 30fps and its way much system requriments than Pyl or Chasm, wonder? how, gamecube games must be very very slow if Dolphin emulate CPU instead of running on actual CPU or any other magic? JIT?
The very sad of it all Pyl cannot run on XP neither Software of 3dfx version with nGlide.
in dosbox pyl slow as hell like chasm too.

https://www.youtube.com/user/whitemagicraven
https://go.twitch.tv/whitemagicraventv

Reply 6 of 12, by RaVeN-05

User metadata
Rank Oldbie
Rank
Oldbie
ripa wrote:

That's called dynamic recompilation and Dosbox is already doing it. Feel free to try to implement a faster recompiler.

i need latest SVN build? or how to turn it on, i want experiment my self

https://www.youtube.com/user/whitemagicraven
https://go.twitch.tv/whitemagicraventv

Reply 7 of 12, by Jorpho

User metadata
Rank l33t++
Rank
l33t++

It's the "core" setting in DOSBox.conf:

CPU Core used in emulation. auto will switch to dynamic if available and appropriate.

There are a few very rare cases in which it has been useful to specify the normal core instead of the dynamic core.

Reply 8 of 12, by DosFreak

User metadata
Rank l33t++
Rank
l33t++
RaVeN-05 wrote:
NTVDM somehow at Windows XP SP3 32bit able to play Chasm The Rift at full speed (Framerate) an by testing with dos app it report […]
Show full quote

NTVDM somehow at Windows XP SP3 32bit able to play Chasm The Rift at full speed (Framerate) an by testing with dos app it reports actual Hz of my CPU while in dosbox i had very slowdown game , and dos app reports low CPU Hz.
It would be very helpful for that game and for Pyl game too.

Maybe some kind of JIT Recompiler? or what ever else. Ok the most interesting thing, Dolphin (GameCube emulator) can run X-Men Legends 1 at full speed, Resident Evil 4 at 30fps and its way much system requriments than Pyl or Chasm, wonder? how, gamecube games must be very very slow if Dolphin emulate CPU instead of running on actual CPU or any other magic? JIT?
The very sad of it all Pyl cannot run on XP neither Software of 3dfx version with nGlide.
in dosbox pyl slow as hell like chasm too.

You're comparing a highly specific piece of hardware and software (console/emulator and game) to a PC emulator. Think about it.

Chasm the rift is a 1997 game so if you don't have a powerful desktop processor (I5/I7 no C2D,I3 or AMD shit) made in the past decade or so it'll probably run like crap in DOSBox. Uprgrade your processor.

https://docs.google.com/spreadsheets/d/1Lnyge … nLVP4bzMqo/edit
http://www.pcgamer.com/how-gamecubewii-emulat … -a-turbocharge/
https://dolphin-emu.org/docs/faq/

The DOSBox devs could probably code DOSBox specifically to run Chasm at OMGFPS! but that's not how it's developed, DOSBox is coded to run all DOS games not just a couple like a console emulator.

How To Ask Questions The Smart Way
Make your games work offline

Reply 9 of 12, by RaVeN-05

User metadata
Rank Oldbie
Rank
Oldbie

i run dosbox + chasm and dosbox+pyl at Intel Core i7 (my friend PC) not better than on my AMD 5200+
sorry i may be noob at this specific, the only thing i see NTVDM uses actual CPU Hz, dosbox emulates CPU "inside CPU"!?!? how that works, and it feels like i need option to emulate CPU and run on actual CPU

https://www.youtube.com/user/whitemagicraven
https://go.twitch.tv/whitemagicraventv

Reply 10 of 12, by DosFreak

User metadata
Rank l33t++
Rank
l33t++

Have you tried the patch mentioned at the bottom of the following page?
http://pcgamingwiki.com/wiki/Chasm:_The_Rift

How To Ask Questions The Smart Way
Make your games work offline

Reply 11 of 12, by RaVeN-05

User metadata
Rank Oldbie
Rank
Oldbie

Yes used that. OK sorry that i going out of topic:
What the best Windows XP SP3 32bit Eng (or Windows 7 SP1 64bit Eng) Settings to make DosBox runs better?
What other application can cause dosbox slowdowns or making it buggy?
What settings for dosbox i should use?
Did there exist some special dosbox versions that can help?

Or last hope is there is any dos emulators that can work faster? I would like to drop everything and fit for Pyl and/or Chasm. (Chasm i can run without problems on XP) for Pyl i can assembly Old PC with Windows ME, i have everything for that except 3dfx

https://www.youtube.com/user/whitemagicraven
https://go.twitch.tv/whitemagicraventv

Reply 12 of 12, by Jorpho

User metadata
Rank l33t++
Rank
l33t++
RaVeN-05 wrote:

sorry i may be noob at this specific, the only thing i see NTVDM uses actual CPU Hz, dosbox emulates CPU "inside CPU"!?!? how that works, and it feels like i need option to emulate CPU and run on actual CPU

If I'm not mistaken, DOSBox needs to constantly interrupt the CPU emulation to do things like providing access to the emulated sound hardware. Thus, you will never get DOSBox to run at the same speed as real DOS running on your CPU.

RaVeN-05 wrote:
What the best Windows XP SP3 32bit Eng (or Windows 7 SP1 64bit Eng) Settings to make DosBox runs better? What other application […]
Show full quote

What the best Windows XP SP3 32bit Eng (or Windows 7 SP1 64bit Eng) Settings to make DosBox runs better?
What other application can cause dosbox slowdowns or making it buggy?
What settings for dosbox i should use?
Did there exist some special dosbox versions that can help?

No, there is nothing you can do to make DOSBox run significantly faster when it comes to running the games in question.