Homebrew WIP melonDS for Switch

Armen

Active Member
Newcomer
Joined
Mar 16, 2010
Messages
39
Trophies
0
XP
372
Country
United States
Ah ok I see. Wasn't trying to whine or rush I thought it was released on switch. Thanks for letting me know! Thanks for your hard work Hydr8gon!
 

Hydr8gon

Dragon Trainer
OP
Developer
Joined
Dec 15, 2014
Messages
316
Trophies
1
Website
hydr8gon.github.io
XP
2,580
Country
Canada
Ah ok I see. Wasn't trying to whine or rush I thought it was released on switch. Thanks for letting me know! Thanks for your hard work Hydr8gon!
No worries. I thought using the core melonDS versioning for the Switch port would reduce confusion, but I guess separate or the same there's always gonna be some confusion :P
Been busy with exams and such, so I haven't had time to update the build. It's possible to just merge the stuff from 0.7.2 into my build and make it work with no changes, but I also wanna add the UI functionality that the desktop build got, like microphone input. I'd also like to optimize the menus a bit before the next release. I may or may not have some time to work on it tomorrow, but either way exams are almost over and after that I'll have plenty of time to work on it.
 

catlover007

Developer
Developer
Joined
Oct 23, 2015
Messages
721
Trophies
1
XP
3,925
Country
Germany
I'd also like to optimize the menus a bit before the next release.
Good to know, I planned to do it sometime:). While you're at it could you please replace this with a simple sleep call: https://github.com/Hydr8gon/melonDS/blob/master/src/switch/main.cpp#L661 ? It's literally burning away CPU cycles, which is esp. on an overclocked CPU not very smart. I profiled melonDS a bit and on lighter workloads the loop runs a few miliseconds per frame, just to.

EDIT: also I'm currently trying to optimise melonDS a bit(I'm a novice in emulator dev, so don't expect anything fancy). Though I already had a first success in optimising the 2D renderer
 
Last edited by catlover007,

Hydr8gon

Dragon Trainer
OP
Developer
Joined
Dec 15, 2014
Messages
316
Trophies
1
Website
hydr8gon.github.io
XP
2,580
Country
Canada
Good to know, I planned to do it sometime:). While you're at it could you please replace this with a simple sleep call: https://github.com/Hydr8gon/melonDS/blob/master/src/switch/main.cpp#L661 ? It's literally burning away CPU cycles, which is esp. on an overclocked CPU not very smart. I profiled melonDS a bit and on lighter workloads the loop runs a few miliseconds per frame, just to.

EDIT: also I'm currently trying to optimise melonDS a bit(I'm a novice in emulator dev, so don't expect anything fancy). Though I already had a first success in optimising the 2D renderer
Hey, that's awesome. Maybe hop in the melonDS IRC: irc.badnik.net #melonds
I'm sure Staple would appreciate the optimizations, and we can all talk about fun dev stuff :)
Also good call on the FPS limiter, I'll look into it.
 

grabman

Well-Known Member
Member
Joined
Sep 25, 2018
Messages
359
Trophies
0
Age
43
XP
717
Country
United States
Just wanted to chime in that even as is when i show this to people like on break at work its blowing people away! Go go go!
 
  • Like
Reactions: focusonme

Hydr8gon

Dragon Trainer
OP
Developer
Joined
Dec 15, 2014
Messages
316
Trophies
1
Website
hydr8gon.github.io
XP
2,580
Country
Canada
0.7.2 is out! Here you go. And here's the changelog:
-Updated to melonDS 0.7.2
-Removed temporary timing hack
-Optimized menus
-File browser now remembers the last folder you launched a ROM from
-Added ability to close/open lid from the in-game menu
-Added option to adjust audio volume
-Added microphone input (if you have a headset with a microphone connected) or white noise input
If you're interested in the changes from core melonDS, check here.

Though I did more or less get everything I wanted to in this release, there are a few things I want to improve once I have more time. Let me know how the mic input works, I was having some crashes that should be fixed but let me know. I already know that the input sounds kinda farty, but I'm passing the input buffer directly to the emulator without touching it at all so there's probably more I should be doing there. Also, make sure you're using headphones that have a microphone, because the Switch doesn't have one built-in. Obviously, it won't work without a mic.
 
Last edited by Hydr8gon,

steven89

Well-Known Member
Newcomer
Joined
Dec 17, 2016
Messages
97
Trophies
0
Age
34
XP
1,356
Country
Hey @Hydr8gon Ive managed to encounter a big bug after updating to 0.7.2,
main menu after selecting a rom system completely freezes,
this bug didnt exist for me on 0.7.1, Im currently on fw 3.0.0 on real hardware
EDIT: Thanks for all the great work you @StapleButter put in
 
Last edited by steven89,
  • Like
Reactions: Hydr8gon

Augar

Well-Known Member
Newcomer
Joined
Dec 11, 2018
Messages
46
Trophies
0
Age
30
XP
143
Country
Brazil
Hey @Hydr8gon Ive managed to encounter a big bug after updating to 0.7.2,
main menu after selecting a rom system completely freezes,
this bug didnt exist for me on 0.7.1, Im currently on fw 3.0.0 on real hardware
EDIT: Thanks for all the great work you @StapleButter put in

I was able to reproduce this issue once, but no more than that.1

Issue i've found at 0.7.2:
-With a ROM loaded and running, going into the settings menu pressing X, there is no way to go back into the same game without reloading a ROM again
-Closing melonDS through the Home Button after loading a second ROM leads Atmosphere 0.8.2 to a total crash, sometimes instant or the system hangs before putting the crash log.
 
  • Like
Reactions: Hydr8gon

Hydr8gon

Dragon Trainer
OP
Developer
Joined
Dec 15, 2014
Messages
316
Trophies
1
Website
hydr8gon.github.io
XP
2,580
Country
Canada
Doesn't sound good. Guess that's what happens when I try to rush a release. I'll look into it and push out a hotfix for 0.7.2 when I get a chance.

Edit: In the meantime I'll take 0.7.2 down from GitHub so more people don't download a buggy version.
 
Last edited by Hydr8gon,

Hydr8gon

Dragon Trainer
OP
Developer
Joined
Dec 15, 2014
Messages
316
Trophies
1
Website
hydr8gon.github.io
XP
2,580
Country
Canada
Really weird, but I couldn't reproduce any crashes. The only thing I can think of is that I somehow uploaded the wrong build, because there were originally crashes when I added mic input but I fixed them. Anyways, I put a new download up, if someone could redownload and let me know if the crashes are still there that would be great.
 
  • Like
Reactions: Rickyman

Joeldkirchner

New Member
Newbie
Joined
Dec 21, 2018
Messages
4
Trophies
0
Age
33
XP
66
Country
United States
Really weird, but I couldn't reproduce any crashes. The only thing I can think of is that I somehow uploaded the wrong build, because there were originally crashes when I added mic input but I fixed them. Anyways, I put a new download up, if someone could redownload and let me know if the crashes are still there that would be great.
I tried the updates from the homebrew store as well as the one from gbaTemp and they both still caused a freeze. Any way we can help debug? Appreciate all your hard work and understand if you need a break!
 
  • Like
Reactions: Hydr8gon

Hydr8gon

Dragon Trainer
OP
Developer
Joined
Dec 15, 2014
Messages
316
Trophies
1
Website
hydr8gon.github.io
XP
2,580
Country
Canada
I tried the updates from the homebrew store as well as the one from gbaTemp and they both still caused a freeze. Any way we can help debug? Appreciate all your hard work and understand if you need a break!
Ugh, that's annoying. It's gotta be the mic init that's causing it, but why isn't it happening for me? Just to be sure, and also so there's a 0.7.2 build that actually works, here's a build with the mic stuff disabled. The white noise option should still work, though. Let me know if it works.

Edit: this build had busted audio, check a couple pages ahead where I posted a better fix.
 
Last edited by Hydr8gon,
  • Like
Reactions: Joeldkirchner

Joeldkirchner

New Member
Newbie
Joined
Dec 21, 2018
Messages
4
Trophies
0
Age
33
XP
66
Country
United States
Ugh, that's annoying. It's gotta be the mic init that's causing it, but why isn't it happening for me? Just to be sure, and also so there's a 0.7.2 build that actually works, here's a build with the mic stuff disabled. The white noise option should still work, though. Let me know if it works.
Aye! That works! I left all the default settings except changed the audio input to white noise.

However I don't have any audio. It didn't work on 0.7.1 either. Kinda weird.
 

warmernextyear

New Member
Newbie
Joined
Jul 30, 2018
Messages
2
Trophies
0
Age
43
XP
357
Country
United States
Are you running SX OS or something else? I'm on Kosmos.

I am using SXOS. I was actually pleased that some of the Castlevanias weren't hitching on audio during the loading screens, but tempered my excitement when they still played a little slo-mo-ish, which is in no way a knock. Definitely getting better with each and every update. Appreciate the hard work, @Hydr8gon and @StapleButter !
 

Hydr8gon

Dragon Trainer
OP
Developer
Joined
Dec 15, 2014
Messages
316
Trophies
1
Website
hydr8gon.github.io
XP
2,580
Country
Canada
Are you running SX OS or something else? I'm on Kosmos.
I'm just using barebones atmosphere. I also only boot into it when I'm working on melonDS, lol. Kosmos uses atmosphere though, yeah? It should be the same. Really weird stuff. I'll have to figure something out before the next release. I've had problems with both audout and audin now, so I might have to just handle audio some other way if possible.

Edit: just now realizing this wasn't directed at me, somehow I missed like half the posts above :wacko:
Oh well, guess it's relevant either way.
 
Last edited by Hydr8gon,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    K3Nv2 @ K3Nv2: So negative