VOGONS


PowerPC Dynamic Recompiler (patch)

Topic actions

Reply 120 of 137, by retro100

User metadata
Rank Newbie
Rank
Newbie

Hi! Dosbox for Wii with jmarsh great patches is available.

@jmarsh
Thank you very much for the great Dynamic Compiler patches!

@Stretch
A forked dosbox-wii version with the Dynamic Compiler patches from jmarsh is now available for the Wii (and WiiU).

I have synced the dosbox-wii to SVN r4301 and applied the patches from jmarsh for Dynamic Compiler support. Unfortunately, there is a bug at the Wii version (independent of the patches. The patches works great!). The bug is that the virtual keyboard cannot be used. A real keyboard is no problem.

For more informations see https://github.com/dborth/dosbox-wii/pull/57 and https://github.com/retro100/dosbox-wii.
I also made some benchmarks with PCPBench. With core=dynamic I get a result of 2.9 fps on my Wii and with core=normal the result is 0.5 fps. For the benchmark results see https://github.com/retro100/dosbox-wii/blob/m … rk_Wii_WiiU.txt. A pre-release is also available at https://github.com/retro100/dosbox-wii/releases.

Currently I applied the patches ppc_dynrec.diff and drive_fat_BE.diff from jmarsh. Have I forgotten any patches or are there any other patches that should be added to the Wii port?

Best regards
retro100

Reply 121 of 137, by Dominus

User metadata
Rank DOSBox Moderator
Rank
DOSBox Moderator

so, how fast is pcpbench? 😀

Windows 3.1x guide for DOSBox
60 seconds guide to DOSBox
DOSBox SVN snapshot for macOS (10.4-11.x ppc/intel 32/64bit) notarized for gatekeeper

Reply 122 of 137, by retro100

User metadata
Rank Newbie
Rank
Newbie

@Dominus: With dynamic enabled I get 2.9 fps. With disabled dynrec (core=normal) I get 0.5 fps. This is a factor 5.8.
Wenn I use Dos/32A instead of DOS4GW at PCPBench the results are 3.1 fps vs 0.7 fps. This is a factor 4.4.

PCPBench 1.03c on Wii
---------o---------------------------------------o-------------------o
version: | Dosbox WII r4301 with dynrec | Dosbox WII 1.7 |
| master branch | |
---------o---------o---------o---------o---------o---------o---------o
core: | dynamic | dynamic | normal | normal | normal | normal |
cylces: | max | max | max | max | max | max |
extender:| Dos/32A | DOS4GW | Dos/32A | DOS4GW | Dos/32A | DOS4GW |
result 1:| 3.0 fps | 2.8 fps | 0.7 fps | 0.3 fps | 0.3 fps | 0.2 fps |
result 2:| 3.1 fps | 2.9 fps | 0.8 fps | 0.5 fps | 0.2 fps | 0.3 fps |
result 3:| 3.1 fps | 2.8 fps | 0.6 fps | 0.5 fps | 0.3 fps | 0.2 fps |

For all results see https://github.com/retro100/dosbox-wii/blob/m … rk_Wii_WiiU.txt

Reply 123 of 137, by Dominus

User metadata
Rank DOSBox Moderator
Rank
DOSBox Moderator

Thanks! I was really interested in it

Windows 3.1x guide for DOSBox
60 seconds guide to DOSBox
DOSBox SVN snapshot for macOS (10.4-11.x ppc/intel 32/64bit) notarized for gatekeeper

Reply 125 of 137, by retro100

User metadata
Rank Newbie
Rank
Newbie
jmarsh wrote on 2021-02-09, 20:16:

I highly recommend you solve the issues with using devkitpro's SDL, it is much faster than dborth's version.

Thanks for the tip! I hope to have time to solve the issues soon 😀 And thanks again for the patches!

Reply 126 of 137, by Stretch

User metadata
Rank Member
Rank
Member

I got a score of 95388 parrots, 35.4 XT in speedtst with core=dynamic, cycles=max, cputype=486_slow

I will try Jazz Jackrabbit on the wii later and report the performance.

Win 11 - Intel i7-1360p - 32 GB - Intel Iris Xe - Sound BlasterX G5

Reply 127 of 137, by Stretch

User metadata
Rank Member
Rank
Member

Played the first level of Jazz Jackrabbit. It was very playable on low quality, no animation. Dosbox set with core=dynamic, cycles=max 90%, cputype=auto, with GUS at 22khz. Some occasional minor slowdown but not enough to ruin the experience.

The game will crash with an unhandled exception at startup if you don't have the wiimote pointing at the wii sensor bar.

Win 11 - Intel i7-1360p - 32 GB - Intel Iris Xe - Sound BlasterX G5

Reply 128 of 137, by digger

User metadata
Rank Oldbie
Rank
Oldbie

Nice work. 🙂

Would this also be useful when building DOSBox for POWER9 (ppc64le) architectures, such as the Talos II workstation or the Blackbird motherboard?

Or would the different endianness and the fact that it's a 64-bit architecture make it practically a rewrite?

I believe that POWER9 CPUs can run in both little-endian and big-endian modes, if that helps.

Perhaps it would work if DOSBox on POWER9 were to be spun up inside a paravirtualized 32-bit big-endian VM instance?

Reply 130 of 137, by digger

User metadata
Rank Oldbie
Rank
Oldbie

Oh wow, that's embarrassing. I've been following so many threads both here and on GitHub, I got confused. Sorry about that. 😅

Reply 131 of 137, by azn

User metadata
Rank Newbie
Rank
Newbie
retro100 wrote on 2021-02-09, 16:55:
@Dominus: With dynamic enabled I get 2.9 fps. With disabled dynrec (core=normal) I get 0.5 fps. This is a factor 5.8. Wenn I use […]
Show full quote

@Dominus: With dynamic enabled I get 2.9 fps. With disabled dynrec (core=normal) I get 0.5 fps. This is a factor 5.8.
Wenn I use Dos/32A instead of DOS4GW at PCPBench the results are 3.1 fps vs 0.7 fps. This is a factor 4.4.

PCPBench 1.03c on Wii
---------o---------------------------------------o-------------------o
version: | Dosbox WII r4301 with dynrec | Dosbox WII 1.7 |
| master branch | |
---------o---------o---------o---------o---------o---------o---------o
core: | dynamic | dynamic | normal | normal | normal | normal |
cylces: | max | max | max | max | max | max |
extender:| Dos/32A | DOS4GW | Dos/32A | DOS4GW | Dos/32A | DOS4GW |
result 1:| 3.0 fps | 2.8 fps | 0.7 fps | 0.3 fps | 0.3 fps | 0.2 fps |
result 2:| 3.1 fps | 2.9 fps | 0.8 fps | 0.5 fps | 0.2 fps | 0.3 fps |
result 3:| 3.1 fps | 2.8 fps | 0.6 fps | 0.5 fps | 0.3 fps | 0.2 fps |

For all results see https://github.com/retro100/dosbox-wii/blob/m … rk_Wii_WiiU.txt

Hello retro100, as it is really hard to get your contact information I am glad you are here. I would like to contact you as you are the one releasing the most up to date version available for the wii. Maybe you saw here on vogons I was looking for a way to be able to switch the mapper on the go while dosbox is running. After googling for quite a while i found a different project that has it done and I got into the piece of code that does the job. Yet i am unable to produce a patch myself for the Wii version. Would like to hear from you, contact me on azn#7863 / Discord if you can. Or send me an e-mail - it is accessible from my web log(url on my vogons profile page). If you can implement this code into the wii version it would be really great news 😉

Take a look at my YouTube channel - totally dedicated to retro shooters

Reply 132 of 137, by retro100

User metadata
Rank Newbie
Rank
Newbie
azn wrote on 2021-03-15, 20:31:

Hello retro100, as it is really hard to get your contact information I am glad you are here. I would like to contact you as you are the one releasing the most up to date version available for the wii. Maybe you saw here on vogons I was looking for a way to be able to switch the mapper on the go while dosbox is running. After googling for quite a while i found a different project that has it done and I got into the piece of code that does the job. Yet i am unable to produce a patch myself for the Wii version. Would like to hear from you, contact me on azn#7863 / Discord if you can. Or send me an e-mail - it is accessible from my web log(url on my vogons profile page). If you can implement this code into the wii version it would be really great news 😉

Hi azn!
I now have enabled "Issues" on my dosbox wii fork https://github.com/retro100/dosbox-wii
Please post on github as Issue your suggestion. I think this thread has the wrong topic for your intention 😁 Maybe you can also write some infos into the issue about were I can find the code for the "switch mapper" (if the code is public available).

Reply 133 of 137, by azn

User metadata
Rank Newbie
Rank
Newbie
retro100 wrote on 2021-03-17, 23:09:
Hi azn! I now have enabled "Issues" on my dosbox wii fork https://github.com/retro100/dosbox-wii Please post on github as Issue […]
Show full quote
azn wrote on 2021-03-15, 20:31:

Hello retro100, as it is really hard to get your contact information I am glad you are here. I would like to contact you as you are the one releasing the most up to date version available for the wii. Maybe you saw here on vogons I was looking for a way to be able to switch the mapper on the go while dosbox is running. After googling for quite a while i found a different project that has it done and I got into the piece of code that does the job. Yet i am unable to produce a patch myself for the Wii version. Would like to hear from you, contact me on azn#7863 / Discord if you can. Or send me an e-mail - it is accessible from my web log(url on my vogons profile page). If you can implement this code into the wii version it would be really great news 😉

Hi azn!
I now have enabled "Issues" on my dosbox wii fork https://github.com/retro100/dosbox-wii
Please post on github as Issue your suggestion. I think this thread has the wrong topic for your intention 😁 Maybe you can also write some infos into the issue about were I can find the code for the "switch mapper" (if the code is public available).

Thanks for your answer, I would do for sure, as it is at first cool feature, and the only thing that keeps me from turning my wii into nice dosbox gaming console 😉

Take a look at my YouTube channel - totally dedicated to retro shooters

Reply 134 of 137, by vorob

User metadata
Rank Oldbie
Rank
Oldbie

Hi! Sorry for silly questions, I’m total noob in programming stuff, I was wondering how dosbox would run on my power pc iBook g4 with 1.33 cpu. At first I’ve downloaded latest official release, tried duke nukem 3d and it was bad. Then I found this thread and special dosbox version with patch applied sadly there was no change.

(https://sourceforge.net/projects/dosbox-ppcjit/)

That’s how game runs in 320x200: https://www.youtube.com/watch?v=kgWM03LEyOE

I wonder if I’m doing smth wrong, maybe there is a chance for better performance?

I already had a thread about this subject, but this time I found the author of this patch. Can’t be a better place to ask about my situation 😀

Reply 135 of 137, by Dominus

User metadata
Rank DOSBox Moderator
Rank
DOSBox Moderator

I don‘t think you can do better, especially with later DOS games, especially more taxing ones like Duke 3D

Windows 3.1x guide for DOSBox
60 seconds guide to DOSBox
DOSBox SVN snapshot for macOS (10.4-11.x ppc/intel 32/64bit) notarized for gatekeeper