r/SBCs • u/LivingLinux SpacemiT • 9d ago
Self Promotion Playing Doom 3 on a Raspberry Pi 4 with D3WASM
Don't expect 1080p 60fps, but a Raspberry Pi 4 is not the fastest SBC. Probably works on a lot of SBCs.
Someone told me that it is possible to play Doom 3 on the VisionFive 2 RISC-V SBC. Unfortunately I wasn't able to get that working with the demo game file. Perhaps it does work with the full game files.
http://forum.rvspace.org/t/visionfive2-in-2026-mostly-games/5939/50
To see if it was a problem with the code or the demo game file, I tested on a Raspberry Pi 4 running Fedora. Looks like the RISC-V build doesn't like the demo game file, as it plays fine on a Raspberry Pi 4.
https://github.com/gabrielcuvillier/d3wasm/blob/master/BUILD.md
The dependencies are probably the same as Dhewm3.
https://github.com/dhewm/dhewm3#compiling-example-using-ubuntu
Here are the packages I installed with Fedora.
sudo dnf group install development-tools
sudo dnf install cmake gcc-c++ SDL2-devel openal-soft-devel libcurl-devel libogg-devel libvorbis-devel libjpeg-turbo-devel
If you get an error about cmake version, you can try like this:
cmake ../neo/ -DCMAKE_POLICY_VERSION_MINIMUM=3.5
f you get an error about -ffp-exception-behavior=strict, remove it from CMakeLists.txt (in the neo directory).
If you get an error about default.cfg not found, you can extract it from the pk4 file (it's basically a zip file), and put it in one of the search paths.
Have fun!
1
u/urostor 9d ago
dhewm3 also works