NitroSwan - A WonderSwan emulator for NDS

plasturion

temporary hermit
Member
Joined
Aug 17, 2012
Messages
788
Trophies
1
Location
Tree
XP
2,358
Country
Poland
Mr Driller and Ganso Jajamaru-kun work even faster on DS Lite. However games like puyo puyo, card captor sakura are working same slow. I wonder why. I also tried to run Dicing Knight but it shows only some screen with testing SRAM. The log is: "Test SRAM #0...OK, TEST SRAM #1,#2,#3 NG!" I'm not using bios, maybe that's why. Anyway thanks for update. Time to move on DSi i guess. :)
 

CrashMidnick

Well-Known Member
Member
Joined
Jul 22, 2015
Messages
442
Trophies
0
Age
39
XP
1,758
Country
France
So I tested briefly all the romset (B&W and colour). I always saw improvements compared to the old release in terms of speed.

All games booted correctly except the following titles (black screen after bios, was the same with previous release) :

Bakusou dekatora densetsu
Beat mania
With you mitsumete Itai

Boots but white screen after selecting a game :
shagai pocket

Boots but no sound in game :
Turntablist - DJ battle

On DSi, I would says that around 40% of games are running at 60fps, 50% between 50/55 FPS and 10% below 50FPS. Really good for a 2nd release !

On DS fat and lite : This is half the speed above (average).

We can say that we have got a working WonderSwan emulator on the DSi and O3DS :) Thanks Flubba !
 

placebo_yue

Well-Known Member
Member
Joined
Aug 7, 2019
Messages
617
Trophies
0
Age
31
XP
968
Country
Argentina
Edit: tested on O3DS

Digimon Anode & Catode: considerable speedup in general, walking around is still slightly slow i think, and the graphics glitch a little, the in-battle map movement doesn't quite yet feel fullspeed but it's good, the battle cutscenes are much faster now. Overall the game is super playable.

Digimon Vpet game: considerable speedup, possibly full speed. Very minor glitches present in previous version remain, but the game is 100% playable with awesome speed on every screen

Digimon Tamers Battle Spirit 1.5: great speed, but serious flickering glitches on the in-battle HUD cover the whole screen. If that's fixed i believe the game is running nearly perfect

Final Fantasy: pretty sure the game is running 100% fullspeed. The dialogbox not covering crates and NPCs still happens, but it's not too bad. I assume after all this testing that graphical glitches weren't dealt with, only speed issues, right?

Final Fantasy 2: same speed as FF1, no graphical glitches noticed

Pocket Fighters: playable speed, small graphical glitches.

other stuff i noticed: the disable sprites/foreground/background options don't seem to do anything, not does the "B&W pallette". Also when changing anything on the settings menu, the app often crashes, not always but often and i haven't noticed a pattern to it yet.
 

CrashMidnick

Well-Known Member
Member
Joined
Jul 22, 2015
Messages
442
Trophies
0
Age
39
XP
1,758
Country
France
Edit: tested on O3DS

Digimon Anode & Catode: considerable speedup in general, walking around is still slightly slow i think, and the graphics glitch a little, the in-battle map movement doesn't quite yet feel fullspeed but it's good, the battle cutscenes are much faster now. Overall the game is super playable.

Digimon Vpet game: considerable speedup, possibly full speed. Very minor glitches present in previous version remain, but the game is 100% playable with awesome speed on every screen

Digimon Tamers Battle Spirit 1.5: great speed, but serious flickering glitches on the in-battle HUD cover the whole screen. If that's fixed i believe the game is running nearly perfect

Final Fantasy: pretty sure the game is running 100% fullspeed. The dialogbox not covering crates and NPCs still happens, but it's not too bad. I assume after all this testing that graphical glitches weren't dealt with, only speed issues, right?

Final Fantasy 2: same speed as FF1, no graphical glitches noticed

Pocket Fighters: playable speed, small graphical glitches.

other stuff i noticed: the disable sprites/foreground/background options don't seem to do anything, not does the "B&W pallette". Also when changing anything on the settings menu, the app often crashes, not always but often and i haven't noticed a pattern to it yet.
Yes I think re-writing the code into asm was his main goal to improve the speed. Problems such as missing text box, glitches and other few issues are still there but this emu is already in a very usable state :)
 
  • Like
Reactions: banjo2

FluBBa

Well-Known Member
OP
Member
Joined
Jan 16, 2004
Messages
155
Trophies
0
Age
47
Website
www.ndsretro.com
XP
1,318
Country
Yes I've only been converting the cpu core to arm asm. My only concern is that I break something, but only changing the cpu core means it's easy to find what is broken if that happens.
Edit: -"Boots but white screen after selecting a game : Shanghai Pocket"
Thanks! This is what I wanted to see, this is now fixed for the next release.
 
Last edited by FluBBa,

FluBBa

Well-Known Member
OP
Member
Joined
Jan 16, 2004
Messages
155
Trophies
0
Age
47
Website
www.ndsretro.com
XP
1,318
Country

The Real Jdbye

*is birb*
Member
Joined
Mar 17, 2010
Messages
21,890
Trophies
3
Location
Space
XP
11,050
Country
Norway
So after 2 months of coding I finally have something to show.
At least some of the games are playable but a DSi is recommended for better speed and more games can be loaded.
Both SRAM and EEPROM is emulated and support for loading and saving of them.
Boot ROM support but should not be needed to play games.
Basic sound emulation though no sample support yet.

Graphics can be a little glitchy depending on the game but this should be possible to fix.
Speed should be fixable to a high degree as well, I will be taking small steps so I can fix regressions if I break any games during optimizations.
No save states yet.
No mapping for vertical controls yet.

https://github.com/FluBBaOfWard/NitroSwan/releases/tag/v0.2.0
Oh wow, it's FluBBa! Love your work man. This release sure came out of nowhere. With your emulator dev experience this could indeed turn out to be something very impressive.
The Wonderswan was a cool system, shame most of the games are Japanese only.
 

placebo_yue

Well-Known Member
Member
Joined
Aug 7, 2019
Messages
617
Trophies
0
Age
31
XP
968
Country
Argentina
Outstanding improvement in speed! i won't even bother talking about specific games, they all are running MUCH better, and the difference is abysmal compared to the other wonderswan emulator we had on 3DS. Great work mr. Flubba, you have my most sincere thanks and admiration
 

FluBBa

Well-Known Member
OP
Member
Joined
Jan 16, 2004
Messages
155
Trophies
0
Age
47
Website
www.ndsretro.com
XP
1,318
Country
Finally a new release. This has taken a lot of work but I still have a couple of ideas left of what to optimize.
All (?) games should now at least start and run close to 60fps on DSi.
* Added banked SRAM emulation.
* Fixed zip decompression buffer size.
* Optimized cycle counting.
* Optimized Program Counter.
* Optimized memory access.
* Optimized opcodes.

https://github.com/FluBBaOfWard/NitroSwan/releases/tag/v0.3.0
 

RocketRobz

Stylish TWiLight Hero
Developer
Joined
Oct 1, 2010
Messages
15,201
Trophies
2
Age
22
XP
17,835
Country
United States
Finally a new release. This has taken a lot of work but I still have a couple of ideas left of what to optimize.
All (?) games should now at least start and run close to 60fps on DSi.
* Added banked SRAM emulation.
* Fixed zip decompression buffer size.
* Optimized cycle counting.
* Optimized Program Counter.
* Optimized memory access.
* Optimized opcodes.

https://github.com/FluBBaOfWard/NitroSwan/releases/tag/v0.3.0
For whatever reason, even though the emulator displays as 60FPS, the MegaMan games still feel like 50FPS, which is weird, since there doesn't seem to be lagging.
Music uploads on YouTube play like 60FPS, compared to the emulator. Am I missing something, or is the result from the emulator how they normally play?
 

FluBBa

Well-Known Member
OP
Member
Joined
Jan 16, 2004
Messages
155
Trophies
0
Age
47
Website
www.ndsretro.com
XP
1,318
Country
For whatever reason, even though the emulator displays as 60FPS, the MegaMan games still feel like 50FPS, which is weird, since there doesn't seem to be lagging.
Music uploads on YouTube play like 60FPS, compared to the emulator. Am I missing something, or is the result from the emulator how they normally play?
Yeah, the reason I was explicit in saying it runs 60FPS instead of full frame rate is that the WonderSwan is actually 75FPS...
You can tweak the DS line position during blank to raise or lower the screen update but I'm not sure if it's possible to go up to 75Hz. Right now it is a long way down on my todo list.
 

FluBBa

Well-Known Member
OP
Member
Joined
Jan 16, 2004
Messages
155
Trophies
0
Age
47
Website
www.ndsretro.com
XP
1,318
Country
New release! This version should be much faster than before, also fixed a lot of graphical glitches.
You can now press the top left buttons by using "L" plus d-pad.

*Added RTC emulation.
*Added a border to emu screen.
*Better mapping of input.
*Optimized graphic redraw.
*Optimized PC/IP handling in cpu core.

https://github.com/FluBBaOfWard/NitroSwan/releases/tag/v0.3.5
 
General chit-chat
Help Users
  • Dark_Phoras @ Dark_Phoras:
    In a "I wouldn't want to be part of any club that accepted me as a member" style sentiment
    Gift
  • Gift
  • KenniesNewName @ KenniesNewName:
    It's ok to admit you liked twilight no one will laugh at you
    Gift
  • Veho @ Veho:
    Yes we will.
    Gift
  • Dark_Phoras @ Dark_Phoras:
    I only watched the first movie and didn't like it, but I enjoyed the car going through the woods and the house is beautiful
    Gift
  • KenniesNewName @ KenniesNewName:
    I didn't like it but vividly remember scenes from it
    Gift
  • Dark_Phoras @ Dark_Phoras:
    I liked this Batman movie. It was a bit underwhelming, but I liked the aesthetic, characterization and how it's more grounded in reality and how it's thematically different from what came before
    Gift
  • AliceCE @ AliceCE:
    the Badman
    Gift
  • AliceCE @ AliceCE:
    vs the yolker
    Gift
  • AncientBoi @ AncientBoi:
    2 days ago, I watched "Morbius". Interesting, but not great.
    Gift
  • AncientBoi @ AncientBoi:
    And that movie pertained to Bats. lol
    Gift
  • Veho @ Veho:
    There was an episode of Spiderman the animated series with Morbius and Blade. Spiderman wanted to capture and help Morbius, Blade wanted to kill him. Hilarity ensued.
    Gift
  • Gift
  • Psionic Roshambo @ Psionic Roshambo:
    Spiderman is always shooting web everywhere... I stepped in some and had to leave my shoe there....
    Gift
  • Psionic Roshambo @ Psionic Roshambo:
    The window washer... We had to have the fire department come remove a pane of glass so he could go get it surgically removed at the ER
    Gift
  • Gift
  • AncientBoi @ AncientBoi:
    They aught to make it for use as the new Super Glue
    Gift
  • Veho @ Veho:
    Spiderman's web dissolves after a few hours... I wonder what happens to thugs he leaves dangling from high places when the web lets go..
    Gift
  • AncientBoi @ AncientBoi:
    :ohnoes: you're right. wow
    Gift
  • Veho @ Veho:
    He always just assumes cops will find them before that happens.
    Gift
  • AncientBoi @ AncientBoi:
    So much for my super glue idea
    Gift
  • Gift
  • Psionic Roshambo @ Psionic Roshambo:
    Still useful just for temporary fixes lol
    Gift
  • Dark_Phoras @ Dark_Phoras:
    @Veho that's a good observation. I assumed webs were permanent and the authorities and villains studied them. If it is like you say, maybe Pete goes back to clean and the movies don't show it, like they don't show him cleaning the house
    Gift
  • Dark_Phoras @ Dark_Phoras:
    Or maybe SHIELD has a taskforce to clean Pete's webs
    Gift
    Dark_Phoras @ Dark_Phoras: Or maybe SHIELD has a taskforce to clean Pete's webs