It's interesting what speed numbers Raspberry 4B has in DOSBox.
(The results of other models can be interesting also.)
The way to compile DOSBox with dynrec support.
How to measure the speed is there.
Details
[as archive.org does not work so I dub the text here]
DOSBox 0.74-3 MSDOS x86 emulator, by Moonmarch
Sun Jul 14, 2019 9:13 am
Version 0.74-3 of the DOSBox program was released recently, the previous version of DOSBox was version 0.74-2 if you do not have plans to build the DOSBox source code, you can always install the DOSBox program included in the Debian repository, this is version 0.74 of the DOSBox program:
sudo apt install dosbox
Here is a link to the DOSBox website:
https://www.dosbox.com/
To download the DOSBox source code, open the terminal:
wget https://sourceforge.net/projects/dosbox/files … x-0.74-3.tar.gz
To unpack the file:
tar -xzf dosbox-0.74-3.tar.gz
Before building the source code you will need to download and install all relevant dependencies from the Debian repository, the list of dependencies needed for the DOSBox program can be found in the INSTALL document located in the dosbox-0.74-3 folder, if you do not install all needed dependencies the program will not compile successfully.
Here are dependencies you will need to compile the source code all other listed dependencies are optional:
sudo apt install autoconf autotools-dev automake libsdl1.2-dev
I'm having difficulties building DOSBox 0.74-3 on Raspbian Buster when I wrote this guide I compiled the DOSBox program with Raspbian Stretch, until this situation is sorted out the SVN build of DOSBox compiles successfully with dynamic recompiler on Raspbian Buster, here are the instructions on how to compile the SVN build of DOSBox:
Install subversion:
sudo apt install subversion
Download the SVN repository:
svn checkout https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk dosbox-code-0
Build the DOSBox SVN program:
cd dosbox-code-0
./autogen.sh
./configure
make -j2
To build the DOSBox 0.74-3 program:
cd dosbox-0.74-3
./autogen.sh
./configure
geany config.h
After opening config.h with Geany here are the lines of code that need to be edited:
Line 37: /* #undef C_CORE_INLINE */
Line 37: #define C_CORE_INLINE 1
Line 51: /* #undef C_DYNREC */
Line 51: #define C_DYNREC 1
Line 91: #define C_TARGETCPU UNKNOWN
Line 91: #define C_TARGETCPU ARMV4LE
Line 94: /* #undef C_UNALIGNED_MEMORY */
Line 94: #define C_UNALIGNED_MEMORY 1
Ctrl + s to save then Ctrl + q to quit, after closing Geany in the terminal run the command:
make -j2
Compiling the program will take at least 15 minutes, to open the program:
cd src
./dosbox
To change the configuration settings open the dosbox-0.74-3.conf or dosbox-SVN.conf file located in /home/pi/.dosbox hidden directory, here are some settings that should be included in the dosbox config file:
[sdl]
windowresolution=640x480
output=surface
[render]
scaler=normal2x
[cpu]
core=auto
cycles=auto
Using different settings can slow down the DOSBox program you can always edit the settings manually core dynamic should be available in the CPU settings, to run the DOSBox program in full screen you will need to enable full KMS drivers in raspi-config.
Games that I tested using the DOSBox emulator all tested games are completely playable:
-Wolfenstein 3D
-Spear of Destiny
-Ultimate Doom
-SimCity 1989
-Dune 2
-Doom 2
-SimCity 2000 Special Edition
-Descent
Update August 21st 2019:
-Added how to build DOSBox SVN explanation
-Miscellaneous improvements
Update August 17th 2019:
-Added dependency list
-Miscellaneous improvements
Update August 12th 2019:
- Added edit config.h explanation
- Miscellaneous improvements
---
= Nightblair's variant =
Download the latest svn version of dosbox here: https://sourceforge.net/p/dosbox/code-0/HEAD/ … e/dosbox/trunk/
Unpack it somewhere, then in the directory run:
./autogen.sh
./configure --disable-opengl
sed -i 's|/\* #undef C_DYNREC \*/|#define C_DYNREC 1|' config.h
sed -i 's/C_TARGETCPU.*/C_TARGETCPU ARMV7LE/g' config.h
sed -i 's|/\* #undef C_UNALIGNED_MEMORY \*/|#define C_UNALIGNED_MEMORY 1|' config.h
make
make install
Be sure, there was no throttling. Make better cooling if there is it.
Report the DOSBox / SVN build version used.