VOGONS


PowerPC Dynamic Recompiler (patch)

Topic actions

Reply 120 of 133, 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 133, 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 133, 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 133, 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 133, 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 133, 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.

Win10 - AMD Ryzen 9 3900 - 16 GB - GeForce RTX 2060S - Sound BlasterX AE5-Plus
Win98SE - ASRock 775i65G R3.0 - Celeron 2.2 GHz - 2 GB - GeForce FX5700 - Audigy 2 ZS
Win98SE - Via Apollo Pro Mobo - Pentium II 233 - 256 MB - Voodoo 3 1000 - Yamaha YMF724

Reply 127 of 133, 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.

Win10 - AMD Ryzen 9 3900 - 16 GB - GeForce RTX 2060S - Sound BlasterX AE5-Plus
Win98SE - ASRock 775i65G R3.0 - Celeron 2.2 GHz - 2 GB - GeForce FX5700 - Audigy 2 ZS
Win98SE - Via Apollo Pro Mobo - Pentium II 233 - 256 MB - Voodoo 3 1000 - Yamaha YMF724

Reply 128 of 133, 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 133, 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 133, 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 😉

Reply 132 of 133, 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 133, 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 😉