franck
Posts: 20
Joined: Sat Dec 08, 2012 9:39 am
Contact: Website

FastDOSBox 1.50 now available for the Raspberry Pi

Mon May 20, 2013 4:54 pm

NoRisc-NoFun (http://www.norisc-nofun.co.uk) has made version 1.5 of FastDosBox For Raspberry Pi / Raspbian available from the Pi Store (http://store.indiecity.com/projects/fastdosbox).

FastDosBox is an enhanced fork of DOSBox, an open source x86 PC emulator. Based on the SVN source code of DOSBox, Users report that FastDosBox is 250% faster than the version of DOSBox on apt-get. The performance of FastDosBox is said to be comparable with that of a 486DX20

The ingredients for the "secret sauce" of FastDosBox include a fixed/ported dynrec x86 emulation part, support for dispmanx, and couple of assembler subroutines.

The benchmark used to compare DOSBox and FastDosBox, and which leads to the claim of a 250% gain in speed, is 3DBench, a benchmark often used in the DOSBox community to compare 386-486 Pentium class machines (https://docs.google.com/spreadsheet/ccc ... zQkE#gid=0). Running the benchmark on FastDosBox on a Raspberry Pi gives a result of 12.0 - equivalent to a 486DX20 - whereas running the version of DOSBox 0.74 on the same board gives a result of 5.

Further information and news can be read at http://www.norisc-nofun.co.uk
Franck / NoRisc-NoFun - [email protected]
http://www.norisc-nofun.co.uk
Twitter : @noriscnofun1

OtherCrashOverride
Posts: 582
Joined: Sat Feb 02, 2013 3:25 am

Re: FastDOSBox 1.50 now available for the Raspberry Pi

Mon May 20, 2013 6:10 pm

The source code package appears to be incomplete. (note: the DosBox project is GPLv2 licensed)

http://www.norisc-nofun.co.uk/downloads ... src.tar.gz

Code: Select all

Making all in gui
make[3]: Entering directory `/home/pi/fastdosbox-1.5/src/gui'
g++ -DHAVE_CONFIG_H -I. -I../..  -I../../include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT  -g -O2  -MT sdlmain.o -MD -MP -MF .deps/sdlmain.Tpo -c -o sdlmain.o sdlmain.cpp
mv -f .deps/sdlmain.Tpo .deps/sdlmain.Po
make[3]: stat: /root/Raspbian/NoFunLib/nofun.h: Permission denied
g++ -DHAVE_CONFIG_H -I. -I../..  -I../../include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT  -g -O2  -MT sdl_mapper.o -MD -MP -MF .deps/sdl_mapper.Tpo -c -o sdl_mapper.o sdl_mapper.cpp
sdl_mapper.cpp:40:19: fatal error: nofun.h: No such file or directory
compilation terminated.
make[3]: *** [sdl_mapper.o] Error 1
make[3]: Leaving directory `/home/pi/fastdosbox-1.5/src/gui'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/pi/fastdosbox-1.5/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/pi/fastdosbox-1.5'
make: *** [all] Error 2

franck
Posts: 20
Joined: Sat Dec 08, 2012 9:39 am
Contact: Website

Re: FastDOSBox 1.50 now available for the Raspberry Pi

Mon May 20, 2013 6:16 pm

Hi,

Just comment this line, it is not the nofun.h is not used in the code anywhere.
I mean Line 40 in sdl_mapper.cpp


Let me know if it is working.

Thanks,

Franck
Franck / NoRisc-NoFun - [email protected]
http://www.norisc-nofun.co.uk
Twitter : @noriscnofun1

OtherCrashOverride
Posts: 582
Joined: Sat Feb 02, 2013 3:25 am

Re: FastDOSBox 1.50 now available for the Raspberry Pi

Mon May 20, 2013 7:12 pm

That got it to compile.

User avatar
redhawk
Posts: 3465
Joined: Sun Mar 04, 2012 2:13 pm
Location: ::1

Re: FastDOSBox 1.50 now available for the Raspberry Pi

Mon May 20, 2013 8:07 pm

How does this program handle SVGA modes like 1024x768 if my Pi was using composite video output??

Richard S.

gzz
Posts: 45
Joined: Fri Sep 14, 2012 2:02 pm
Location: Canada

Re: FastDOSBox 1.50 now available for the Raspberry Pi

Wed Jun 12, 2013 10:19 pm

Is the source code on the authors page complete?

Yes it compiles, but wheres the dispmanx support? Or is the author just referring to using the libSDL dispmanx port?

User avatar
guidol
Posts: 69
Joined: Tue Jul 03, 2012 9:21 am
Location: Mudanya, Turkey

Re: FastDOSBox 1.50 now available for the Raspberry Pi

Thu Jun 13, 2013 8:22 am

franck wrote:NoRisc-NoFun (http://www.norisc-nofun.co.uk) has made version 1.5 of FastDosBox For Raspberry Pi / Raspbian available from the Pi Store
Users report that FastDosBox is 250% faster than the version of DOSBox on apt-get. The performance of FastDosBox is said to be comparable with that of a 486DX20
Further information and news can be read at http://www.norisc-nofun.co.uk
Is there a compare for FastDOSBox 1.5 against rpix86 V0.07?

Booth seems to have the same speed (486/20) and they are booth in the Pi-Store:
http://store.raspberrypi.com/projects/rpix86
http://rpix86.patrickaalto.com/rdown.html

Has FastDOSBox any advantages against rpix86? Or should they work better together for building a even better DOS-Emulator? :-)

gzz
Posts: 45
Joined: Fri Sep 14, 2012 2:02 pm
Location: Canada

Re: FastDOSBox 1.50 now available for the Raspberry Pi

Thu Jun 13, 2013 10:30 am

Using the rpix86 from the store and my own compiled fastdosbox, both have negatives and positives.

rpix86 is faster, uses the native rendering of the pi. But it has some sound issues (cant get digitized sound to work in some games), has mouse issues (acceleration is way way too slow), and cant mount cdroms?

fastdosbox is slower, has video issues (no scaling?, small graphics window?), but has perfect sound, cdrom mounting, etcetc, all the normal stuff you would see in any other dosbox.

I do have a feeling that my fastdosbox isnt compiled properly though or my .conf file is missing something, so performance might change.

Thaddy
Posts: 174
Joined: Wed Mar 06, 2013 11:28 am

Re: FastDOSBox 1.50 now available for the Raspberry Pi

Fri Jun 14, 2013 7:27 pm

Plz make sure the license conforms..... This is important. It should be GPL2.

JTCook
Posts: 16
Joined: Tue Nov 12, 2013 1:53 am

Re: FastDOSBox 1.50 now available for the Raspberry Pi

Sun Dec 22, 2013 2:23 am

gzz:
I have compiled my own and also have the same problem of small window sizes, so I am thinking the same thing that there is something that isn't switched on for the source release. I have read here that it looks like it supports hardware scaling:
http://www.codingepiphany.com/2013/06/2 ... astdosbox/

Also that the Indystore version does not support X, but the version I compiled will run in X and even run windowed.

User avatar
ChrisPHL
Posts: 3
Joined: Thu Feb 06, 2014 2:58 pm
Location: Germany
Contact: Website

Re: FastDOSBox 1.50 now available for the Raspberry Pi

Thu Feb 06, 2014 3:40 pm

Hi Franck,

as it seems I'm not the only one having tested the source code of FastDOSBox v1.5 for RPi and having feature missing issues.
I got the source code compiled, I got it run on top of X and I didn't get it to show nicely upscaled video.
Could you please review the source code you released and make sure, that it is exactly the one you used to compile the binary version? IMHO there's missing some essential code or build configuration for the compilation. (Remember to read the GPLv2 again, please.)
If there's nothing missing, if the sources are exactly what you used to compile, please be so kind to hint the correct dosbox-CVS.conf settings or other missing configuration setting for the compile process.

Thank you so much for your great work!

Kind regards
Christian

gmc
Posts: 123
Joined: Fri Mar 09, 2012 11:31 am
Location: Cheshire, UK
Contact: Website

Re: FastDOSBox 1.50 now available for the Raspberry Pi

Sun Aug 17, 2014 9:45 am

I download the source, did a configure, make and make install which seemed successful but I cant find any of the fastdosbox binaries to run? Anyone compiled from source successfully?

exobuzz
Posts: 137
Joined: Mon Nov 26, 2012 6:58 pm

Re: FastDOSBox 1.50 now available for the Raspberry Pi

Tue Dec 30, 2014 3:58 pm

I have been looking at the source - I find no references at all to dispmanx (no use of bcm includes - no bcm_host_init call). If the released binary has support, then it is not included in this source release.

Please can you publish the source including the stuff you added for the binary release. Thanks.

exobuzz
Posts: 137
Joined: Mon Nov 26, 2012 6:58 pm

Re: FastDOSBox 1.50 now available for the Raspberry Pi

Tue Dec 30, 2014 4:00 pm

I would add the authors domain is no longer registered - so the download doesn't work. You can get the source still from http://downloads.petrockblock.com/retro ... src.tar.gz

If this is a GPL violation (incomplete source), it should be withdrawn from the store.

exobuzz
Posts: 137
Joined: Mon Nov 26, 2012 6:58 pm

Re: FastDOSBox 1.50 now available for the Raspberry Pi

Tue Dec 30, 2014 5:03 pm

diffing the source against the closest dosbox revision I could find, I see very little code changed (apart from some different file versions as I'm not sure the exact source of the code - it has some bits I can reference to dospad, and some to risc os port).

I think the author is having us on. note that dosbox does include armv4 dynamic recompilation support, so if it didn't work it would just be a matter of fixing it up. I see very little differences in this part of the code, and it looks like it is just down to version mismatches of files - I cannot see lots of pi related customisations.

of course for the binary who knows how much the dynamic recompilation may have been reworked, along with the dispmanx output etc but it is not in this source. This source does contain some changes to the default settings, and some string changes, but little else.

I'll be happy to be proved wrong on this.

User avatar
ChrisPHL
Posts: 3
Joined: Thu Feb 06, 2014 2:58 pm
Location: Germany
Contact: Website

Re: FastDOSBox 1.50 now available for the Raspberry Pi

Tue Dec 30, 2014 6:29 pm

exobuzz wrote:If this is a GPL violation (incomplete source), it should be withdrawn from the store.
Hi Folks,
this is definitely not the correct way to handle the violation. Since I bought the binary I even got the right do get the source code. (GPL) So one has to claim the release of the sources...
By the way:
I contacted the author a while ago and he was not able/willing to let me know how he build the dosbox binary with hardware acceleration enabled. So even on explicit question. But I got information against which additonal libraries the source have to build (dispmanx). I will post the conversation log here these days for you all. Stay tuned! ;-)
As we say in good old Germany: Guten Rutsch euch allen!

kind regards
Christian

exobuzz
Posts: 137
Joined: Mon Nov 26, 2012 6:58 pm

Re: FastDOSBox 1.50 now available for the Raspberry Pi

Wed Dec 31, 2014 4:46 pm

I agree the proper course of action is for the full / correct source to be released, but in the meantime I think it should be pulled from the store - it might encourage them to comply fully with the GPL also.

exobuzz
Posts: 137
Joined: Mon Nov 26, 2012 6:58 pm

Re: FastDOSBox 1.50 now available for the Raspberry Pi

Thu Jan 01, 2015 7:02 pm

Hopefully this is useful to someone - how to build dosbox with dynamic recompilation support - http://www.raspberrypi.org/forums/viewt ... 78&t=95421

User avatar
ChrisPHL
Posts: 3
Joined: Thu Feb 06, 2014 2:58 pm
Location: Germany
Contact: Website

Re: FastDOSBox 1.50 now available for the Raspberry Pi

Tue Jan 20, 2015 8:14 pm

Thanks exobuzz for your link, I think I should give it a try.

As I said, here's what I did (on [email protected]) to compile FasterDosbox:

Code: Select all

sudo apt-get update
sudo apt-get -y install build-essential automake1.9 libsdl1.2-dev libsdl-sound1.2-dev libsdl-net1.2-dev libsdl1.2debian libsdl-sound1.2 libsdl-net1.2 unp

wget https://github.com/vanfanel/SDL12-kms-dispmanx/archive/master.zip
unp SDL12-kms-dispmanx-master.zip

cd SDL12-kms-dispmanx-master
./autogen.h
./MAC_ConfigureDISPMANX.sh
make
sudo make install
cd ..



wget http://gaming.capsule-sa.co.za/downloads/fastdosbox-1.5_src.tar.gz
#unp fastdosbox-1.5_src.tar.gz
unp fastdosbox-1.5.tar.bz2
cd fastdosbox-1.5/

# sed 's/#include "nofun.h"/\/\/#include "nofun.h"/g' src/gui/sdl_mapper.cpp > sdl_mapper.cpp.patched; mv sdl_mapper.cpp.patched src/gui/sdl_mapper.cpp

./autogen.sh
./configure --enable-core-inline

make
As you can see, I commented the unp-line, because I got a 'kind of newer' faster dosbox from
Franck Martinaux <[email protected]> via e-mail. I got a config.h file also.
You find both files at: Hope that helps and gets us a step forward. :-)

kind regards
Christian

exobuzz
Posts: 137
Joined: Mon Nov 26, 2012 6:58 pm

Re: FastDOSBox 1.50 now available for the Raspberry Pi

Tue Jan 20, 2015 9:09 pm

the config.h he provided is what is needed to enable the dynamic recompilation - you can either copy it in place after running configure, or just adjust the configure generated config.h after like so

Code: Select all

    sed -i 's|/\* #undef C_DYNREC \*/|#define C_DYNREC 1|' config.h
    sed -i 's/C_TARGETCPU.*/C_TARGETCPU ARMV4LE/g' config.h
but there is no need to run fastdosbox at all imho - you could download dosbox from svn and use that (or use retropie which uses the latest dosbox) - there are no additional optimisations in fastdosbox. There was more time spent adjusting the code to put in a different splash/with url than there was useful code changes.

And if the author did any additional optimisations they were not in the source he released. I spent some time analysing the differences with dosbox (and other forks)

Return to “General discussion”