VOGONS


PowerPC Dynamic Recompiler (patch)

Topic actions

Reply 120 of 130, 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 122 of 130, 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 125 of 130, 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 130, 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 130, 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 130, 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 130, 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. 😅