NitroSwan - A WonderSwan emulator for NDS

plasturion

temporary hermit
Member
Joined
Aug 17, 2012
Messages
1,211
Trophies
2
Location
Tree
XP
3,496
Country
Poland
I'm using DS Lite with R4/wood and as for me sound button (select) works fine for wsc games on latest release (0.3.6). Also there's no issues while launching the game.
 
Last edited by plasturion,
  • Like
Reactions: Indy13

CrashMidnick

Well-Known Member
Member
Joined
Jul 22, 2015
Messages
725
Trophies
0
Age
41
XP
2,831
Country
France
does this emulator work much worse on DS than on 3DS or what? saying it's not in playable state is ridiculous from my experience, it's way past playable for most games, but maybe on DS it's very different? i suppose..?

The main problem of the DS fat/lite is the lack of RAM. Many games cannot be launched. The speed is OK.
To me, adding the abality to use a RAM expansion for old hardware would be very nice (same for NGPDS)
 

plasturion

temporary hermit
Member
Joined
Aug 17, 2012
Messages
1,211
Trophies
2
Location
Tree
XP
3,496
Country
Poland
I wonder is it possible to fix some PCM sounds or disable. For example Kaze no Klonoa doesn't shout "Wahoo!" while jumping, but there's some shattered sounds instead. (as for me, better if he could be quiet, however I can used to this scratches even I beated the whole game lately and it's pretty great. Moonlight Museum In gray colors still feels and looks way better than gba competitor. There's more dificulty and has unique timing levels) The same shattered sounds are in example in Puyo 2, while moving a jellybean, or select stages. It makes unplayable with sounds.
In first post we read...
Basic sound emulation though no sample support yet.
so that explains the current state, I wonder if adding sample support will slow down emulation, but maybe some speed improvements are still possible. Looking forward for it.
For ws games only black and white color pallete works... there's some options that provides other colors (i guess like with custom color polarizer effect) but it won't work for me. It would be cool to add some colorizing effects like gbc does for gb games. Let's say geen-blue background palette and red tones for sprites. Or even better, Wonderswan has 3 layers (background, foreground and sprites), I wonder is it possible to give each of them different palette. I did some screenshots of separeted layers with oswan, edited colors and join them again, so this is how it could look like.
mixed.png

Anyway thanks for improving this emu. I'm happy how great it works for ds lite now and really enjoy it.
 
Last edited by plasturion,

wavemotion

Benign Geek
Member
Joined
Nov 23, 2020
Messages
915
Trophies
1
XP
7,330
Country
United States
@FluBBa - had a really enjoyable sit-down with this emulator this weekend. Judgement Silversword is a must-play. I also got a chance to really dig in on Dicing Knight which is brilliant (apparently it was a homebrew that went commercial). The only problem was a bit of slowdown - it seems to be close but running about 80-85% normal speed on the DSi. I realize you're pushing maximum speed with some tight assembly code... not sure if you've tried a frameskip (say, rendering 75% or 50% frames) ... if that game could come up even just 10% in speed (a tall task, I know) it would be an example of a system exclusive that MUST be played by every classic gamer.

Thanks for your efforts here!
 

FluBBa

Well-Known Member
OP
Member
Joined
Jan 16, 2004
Messages
232
Trophies
2
Age
49
Website
www.ndsretro.com
XP
2,364
Country
it seems to be close but running about 80-85% normal speed on the DSi.
Yeah, same with (almost) all games, the WS is default configured to run @75Hz, Firelancer is a home-brew that actually changes this to 60Hz to get more time in VBlank. I might take a stab at changing the DS update frequency but I'm not sure it can run @75Hz.
I will take a look at ch2 sample playing, at least turn it off if I can't get samples playing easy.
 

TheBeverage

Well-Known Member
Newcomer
Joined
Mar 13, 2015
Messages
80
Trophies
0
XP
663
Country
United States
Hm, I can't get Makai Toushi Sa-Ga's English patch to load. I get a "File to large"[sic] error. I am not sure what I'm doing wrong as someone else in the thread seemed to have it booting. I have the BIOS installed and am using an AceKard 2i on a DSi XL.
 

CrashMidnick

Well-Known Member
Member
Joined
Jul 22, 2015
Messages
725
Trophies
0
Age
41
XP
2,831
Country
France
m, I can't get Makai Toushi Sa-Ga's English patch to load. I get a "File to large"[sic] error. I am not sure what I'm doing wrong as someone else in the thread seemed to have it booting. I have the BIOS installed and am using an AceKard 2i on a DSi XL.

You use a flash card meaning you are limited to 4mb RAM which is not enough to load the ROM. You need to install Twilight menu on your internal SD card. You will gain access to 16mb RAM and 133Mhz CPU clock.
 

TheBeverage

Well-Known Member
Newcomer
Joined
Mar 13, 2015
Messages
80
Trophies
0
XP
663
Country
United States
Using Twilight Menu, the Makai Toushi Sa-Ga patch now loads, but it seems to have a couple issues.
1) The text boxes from dialogue do not display properly, as shown below.
2) The music seems to run a bit slow. Not the game itself, as running results in smooth scrolling, but just the playback of the music.

Thank you for your hard work on this!
 

Attachments

  • IMG_0024.jpeg
    IMG_0024.jpeg
    3.6 MB · Views: 130
  • IMG_0025.jpeg
    IMG_0025.jpeg
    3.9 MB · Views: 121

RocketRobz

Stylish TWiLight Hero
Developer
Joined
Oct 1, 2010
Messages
16,593
Trophies
3
Age
24
XP
20,971
Country
United States
Using Twilight Menu, the Makai Toushi Sa-Ga patch now loads, but it seems to have a couple issues.
1) The text boxes from dialogue do not display properly, as shown below.
2) The music seems to run a bit slow. Not the game itself, as running results in smooth scrolling, but just the playback of the music.

Thank you for your hard work on this!
The WonderSwan actually runs at a higher refresh rate than the DS, so that's why the scrolling seems smooth but the sound is slow.
It is possible to increase the refresh rate of the DS to make it run faster, but that'd be on the developer's side.
 

FluBBa

Well-Known Member
OP
Member
Joined
Jan 16, 2004
Messages
232
Trophies
2
Age
49
Website
www.ndsretro.com
XP
2,364
Country
So, after a lot of work on the CPU core here is a new version.
* Fixed flag calculation for most opcodes.
* Fixed emulation of undefined opcodes.
* Fixed settings to disable Bg,Fg & Spr.
* Fixed default sound volume on WSC/SC.
* Optimized the cpu core.
* Tweaked behaviour of timers.
* Mute Ch2 when playing samples.
https://github.com/FluBBaOfWard/NitroSwan/releases/tag/v0.4.0
 

plasturion

temporary hermit
Member
Joined
Aug 17, 2012
Messages
1,211
Trophies
2
Location
Tree
XP
3,496
Country
Poland
I didn't check much, but Magical Drop works now, great! Kaze no Klonoa doesn't have the shattered sound samples, cool, but my first thought isn't too silent now? :unsure: Maybe better way is replace samples with regular chipsounds, patching the game. (I know it's not gonna happen) Also Guilty Gear Petit some sound channels that worked fairly ok before, are off now. Really Big Thanks for the update and your work, good to see it's improved again.
 

Cris1997XX

Well-Known Member
Member
Joined
Oct 31, 2021
Messages
470
Trophies
0
Age
23
XP
1,262
Country
Italy
The update makes this emulator quite a bit better. Not a lot, but a bit. Magical Drop runs full speed from what I've seen (My eyes might be at fault here though), and there's a slight performance boost across the board. I agree with wavemotion on Judgement Silversword, too bad the controls are finnicky. Music is still slow in most games
 

FluBBa

Well-Known Member
OP
Member
Joined
Jan 16, 2004
Messages
232
Trophies
2
Age
49
Website
www.ndsretro.com
XP
2,364
Country
The update makes this emulator quite a bit better. Not a lot, but a bit. Magical Drop runs full speed from what I've seen
Are you by chance running NitroSwan in an emulator?
I do all my development running it in DeSmuME and wasn't really satisfied of the speed, now I have tested all games on my DS-Lite and almost all games runs at or very close to 60FPS. In the "Options" tab now under debug you can turn on the FPS meter, please report on any "slow" games.
 
  • Like
Reactions: CrashMidnick

Cris1997XX

Well-Known Member
Member
Joined
Oct 31, 2021
Messages
470
Trophies
0
Age
23
XP
1,262
Country
Italy
Are you by chance running NitroSwan in an emulator?
I do all my development running it in DeSmuME and wasn't really satisfied of the speed, now I have tested all games on my DS-Lite and almost all games runs at or very close to 60FPS. In the "Options" tab now under debug you can turn on the FPS meter, please report on any "slow" games.
No, I never test this stuff on emulators. In fact I tried 4.0 on my DSi XL multiple times
 

FluBBa

Well-Known Member
OP
Member
Joined
Jan 16, 2004
Messages
232
Trophies
2
Age
49
Website
www.ndsretro.com
XP
2,364
Country
If you're running in DSi mode no games should ever dip below 60FPS, if this is not what you experience then something must be different on your end and I can't figure out what it might be...
 

FluBBa

Well-Known Member
OP
Member
Joined
Jan 16, 2004
Messages
232
Trophies
2
Age
49
Website
www.ndsretro.com
XP
2,364
Country
Here is a version with support for running the DS(i) in 75Hz, this setting is under the Options tab -> Settings -> Allow Refresh Change.
* Fixed background for PCV2 mode.
* WS refresh rate can control NDS refresh rate.
https://github.com/FluBBaOfWard/NitroSwan/releases/tag/v0.4.1

Edit: I fixed the FPS meter and changed the binary on Github, hope that worked.
 
Last edited by FluBBa,

RocketRobz

Stylish TWiLight Hero
Developer
Joined
Oct 1, 2010
Messages
16,593
Trophies
3
Age
24
XP
20,971
Country
United States
Here is a version with support for running the DS(i) in 75Hz, this setting is under the Options tab -> Settings -> Allow Refresh Change.
* Fixed background for PCV2 mode.
* WS refresh rate can control NDS refresh rate.
https://github.com/FluBBaOfWard/NitroSwan/releases/tag/v0.4.1

Edit: I fixed the FPS meter and changed the binary on Github, hope that worked.
The Rockman/Megaman games are finally running at the intended speed with this new version! :yaynds:
Thank you!
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    SylverReZ @ SylverReZ: @Psionic Roshambo, Thats pretty cool.