Homebrew WIP melonDS for Switch

yyoossk

Well-Known Member
Member
Joined
Oct 18, 2017
Messages
200
Trophies
0
XP
2,418
Country
Japan
so I already wanted to do a release last week, but then I didn't. I don't know why now, but I think this is a good point in time.

So behold, the first public (pre alpha) release of melonDS with ARM64 JIT and Neon GPU optimisations:toot::toot:. The source code is available here: https://github.com/RSDuck/melonDS/tree/switch

You need to put your bios files and romlist.bin (which is shipped with regular melonds releases) into sdcard root/melonds

It currently uses my own not so great for end user interface, but this also isn't a release for general audiences.

Press ZL to hide the gui overlay while playing.

Most 2d games run well without overclocking. For 3d games it depends on the load. E.g. Pokemon HG runs fullspeed with full overclock. Saving is always slow, because it's done synchronous in melonDS, so it's bound by your sd card speed.

The jit max block size is by default set to max 32. The dynarec of melonDS seems to be more robust than the one of desmume, I haven't found a game, which breaks at this high block size. If you do experience crashes or bugs, please try to first to disable branch optimisations and then to lower the block size. Note that the fast 2d renderer currently dosen't support background mosaic, which should rarely be noticeable.

The future is currently unclear. My homebrewed profiler turned out to provide inaccurate results, there are so many things I could try, but I don't know how much impact they would make.

EDIT: I noticed that the screen layout isn't applied on load, the attached file is replaced with one where this was fixed.

EDIT 2: I noticed a second bug, when the screens are rotated the touchscreen doesn't work properly


great job!
 
  • Like
Reactions: lordelan

gnmmarechal

Well-Known Member
Member
GBAtemp Patron
Joined
Jul 13, 2014
Messages
6,038
Trophies
2
Age
25
Location
https://gs2012.xyz
Website
gs2012.xyz
XP
5,989
Country
Portugal
Quick question, does overclocking requires separate program like sys-clk? Thanks in advance.
From what I read on the OP, it seems to be a built-in option, similar to how RetroArch does it.
 

ploggy

WAKA! WAKA!
Member
Joined
Aug 29, 2007
Messages
4,818
Trophies
2
XP
7,846
Country
United Kingdom
will not work i have same issue as ploggy
Which issue?
Make sure you have the bios7.bin, bios9.bin and firmware.bin in root/melonds.
-----------
The only game that runs fullspeed for me so far in my tests is Yoshi's Island, both Mario 64 DS and Castlevania Aria of Sorrow run quite badly :/
I haven't tried Pokemon yet but looking at the vid above that should run fine :)
 

FanNintendo

Well-Known Member
Member
Joined
Apr 16, 2018
Messages
1,583
Trophies
0
Age
51
XP
2,523
Country
United States
Which issue?
Make sure you have the bios7.bin, bios9.bin and firmware.bin in root/melonds.
-----------
The only game that runs fullspeed for me so far in my tests is Yoshi's Island, both Mario 64 DS and Castlevania Aria of Sorrow run quite badly :/
I haven't tried Pokemon yet but looking at the vid above that should run fine :)
20191013_121742.jpg
 

ShadowOne333

QVID PRO QVO
Editorial Team
Joined
Jan 17, 2013
Messages
12,184
Trophies
2
XP
33,687
Country
Mexico
Which issue?
Make sure you have the bios7.bin, bios9.bin and firmware.bin in root/melonds.
-----------
The only game that runs fullspeed for me so far in my tests is Yoshi's Island, both Mario 64 DS and Castlevania Aria of Sorrow run quite badly :/
I haven't tried Pokemon yet but looking at the vid above that should run fine :)
Dawn* of Sorrow :P
Aria is the GBA one. Unless melon runs GBA too and I wasn't aware of it xD
 
  • Like
Reactions: ploggy

catlover007

Developer
Developer
Joined
Oct 23, 2015
Messages
720
Trophies
1
XP
3,922
Country
Germany
as I already wrote only 2d games run fullspeed without overclock. For games which use the 3d engine (which includes some games which use the 3d engine to draw 2d graphics) overclock is unfortunately still needed.

You can enable overclocking before loading a rom, in the window called "Settings"
 
  • Like
Reactions: ShadowOne333

FanNintendo

Well-Known Member
Member
Joined
Apr 16, 2018
Messages
1,583
Trophies
0
Age
51
XP
2,523
Country
United States
as I already wrote only 2d games run fullspeed without overclock. For games which use the 3d engine (which includes some games which use the 3d engine to draw 2d graphics) overclock is unfortunately still needed.

You can enable overclocking before loading a rom, in the window called "Settings"
mine not working how do u put melon.nro in what file? I have bios and bin in melon folder. i had old melon was working now this new melon.nro not working
 

ploggy

WAKA! WAKA!
Member
Joined
Aug 29, 2007
Messages
4,818
Trophies
2
XP
7,846
Country
United Kingdom
still not working and u mind show me the directory file how u do?
2019101317384800-703BDEE72B19135DD048E644FC452DE6.jpg

as I already wrote only 2d games run fullspeed without overclock. For games which use the 3d engine (which includes some games which use the 3d engine to draw 2d graphics) overclock is unfortunately still needed.

You can enable overclocking before loading a rom, in the window called "Settings"
I should have said this IS with full overclock through the ui settings
 

catlover007

Developer
Developer
Joined
Oct 23, 2015
Messages
720
Trophies
1
XP
3,922
Country
Germany
I should have said this IS with full overclock through the ui settings
I noticed too that e.g. Animal Crossing doesn't work too well even with full overclock. Though I know that Pokemon HG, aswell as Mario Kart run fullspeed. There's still a lot to be done.

I have also updated the binary, touch input for rotated screens is now fixed.
 
  • Like
Reactions: ber71 and ploggy

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Xdqwerty @ Xdqwerty: Where's everybody?