|Home | Downloads | Screenshots | Forums | Source code | RSS|
the plaaaaaans: getting staaaaaarted
Aug 11th 2018, by StapleButter
It's a big DSi. Pretty cool, eh?
Quick inspection reveals that everything is alright. It was factory-reset, tho, so
Still no news of the other order. If you happen to remember, it was returned to sender, and the sender notified me about it and asked me what they should do. I gave them another address to ship to, and even offered to pay for the reship, but since then, silence.
I guess I'll have to give the seller a reminder. Or ask for a refund.
Regardless, I think we can get started with the interesting things... once I'm a bit more settled.
|4 comments (last by Paraskevidis) | Post a comment|
The 'timing' branch
Aug 7th 2018, by StapleButter
In the meantime, I figured I'd give this a try.
Basic idea is that emulating timings with reasonable accuracy will require emulating the ARM9 caches.
I want to see if I can emulate those without completely killing performance. If I pull it off, there'll be several benefits:
* much more accurate timings, fixing games that do weird things
* homebrew developers using melonDS wouldn't fall into the typical 'forgot to flush/invalidate cache' pitfall that reveals itself when testing on hardware
* if we take it even further, we can emulate the MPU (memory protection unit), which means emulating crashes
I guess that if I manage to get it going, there will be a sorta beta release so I can get feedback about this, whether it's killing performance, etc...
|7 comments (last by H3lp Me) | Post a comment|
Updates on the plaaaaaaans
Jul 30th 2018, by StapleButter
The package was, surprise, returned to sender, because some idiot can't find a mailbox that is street-facing and not hidden or anything fancy. Hell, it's right next to the building's front gate.
I'm trying to see if I can have it shipped at another address which I know should work.
I ordered another one, too (that was before the seller for the first one contacted me about the package), but it won't be shipped until a week.
I guess it can't be a bad idea to get two consoles either way. Like, if one turns out to be less/not haxable, or if I need to do hardmods...
|3 comments (last by Thormented) | Post a comment|
Jul 23rd 2018, by StapleButter
The plan was to receive the package and post a picture of the contents as a reveal, but obviously this is not going as planned. So I guess a shitty reveal is better than teasing people and letting them hang in the void forever.
So here it is.
The next direction for this is DSi emulation.
In the meantime, depending on how things go, I might do some work on GPU accuracy again, but for now I'm taking a few days of vacation.
Upscaling is also something I might try someday. I have some ideas for it, but we'll see.
|15 comments (last by AsPika2219) | Post a comment|
Jul 21st 2018, by StapleButter
Did the package arrive since then?
Of couuuuurse not.
I guess I'm in for another round of fighting the incompetent postal services. Yay.
The sender also didn't provide a tracking number so I have no idea what's going on. This is so fucking amazing.
|2 comments (last by Thelolest) | Post a comment|
Thank you all! :)
Jul 15th 2018, by StapleButter
I don't always take the time to respond to your comments on this site, I'm sorry about it.
But I read your comments. I always do.
And I want to say, thank you. Those comments are real nice.
It's nice to see that you are still following this blog, despite the lack of modern subcription/following features.
(it's also nice to note that the viagra spammer stopped posting spam comments on the blog's second entry. not that their attempts at making links ever worked)
I have been ordering something that should arrive next week, hopefully Monday :)
This is related to the surprise. You'll know soon :)
|15 comments (last by Khangaroo) | Post a comment|
Jul 12th 2018, by StapleButter
I finally intend to keep going with melonDS, in one of the possible directions.
You will know more about this soon, but for now, it's a surprise ;)
|19 comments (last by AsPika2219) | Post a comment|
melonDS status, and plans for the future
Jun 2nd 2018, by StapleButter
I figured I would write this, to give you an idea of melonDS's current status, what has been done and what remains to do.
To reply to the comments on the previous post: melonDS is already open-source, and it has always been. You will find the source code on Github. You can do whatever you want with it, as long as you are respecting the GPL.
So, here's a quick list of how things are and what needs to be done, from the top of my head. Searching the codebase for TODO/FIXME/HACK will find all the items.
All the instructions supported by the ARM7 and ARM9 are implemented.
ARM9-only instructions are enforced, altough this may be incomplete. It's unclear how some of them behave on the ARM7: some throw undefined instruction exceptions, but some seem to do nothing or behave like another instruction.
Cycle counting is rather crude and likely to be wrong for the more complex ARM9. Speaking of, the MPU and cache still have to be implemented (hopefully without killing performance). The first would allow emulating some game/homebrew crashes that happen on hardware, the second would be a requirement for reasonably accurate timings.
All DMA types are implemented, with reasonably accurate timings and operation. Running DMA and ARM9 simultaneously (possible under specific conditions) isn't implemented.
Timers might need checking/rework?
Memory map is accurate, including things like overlapping VRAM banks.
ROM/SPI transfers are emulated with proper delays, and should function like their hardware counterparts, minus some uncovered details (see all-caps printf() calls).
ARM9-side div/sqrt are emulated with delays.
All features are implemented. Even the rarely used 'main memory display FIFO'.
OBJ mosaic may be wrong, especially with rotated/scaled sprites.
DISPCNT latching is missing. Other registers may be latched, that hasn't been researched much yet.
VRAM access timings aren't implemented.
Most features are implemented.
The geometry engine is emulated mostly accurately. Polygon/vertex limits are enforced. Culling and clipping haven't been researched closely and may produce results different from hardware.
GXFIFO overflow isn't implemented properly (should incur penalty for ARM9 and presumably ARM7).
Misc things like effects of invalid operations (incomplete polygons etc) may not be implemented.
The rendering engine is emulated with much more accuracy than needed for your average game. Much research went into figuring out how the rasterizer works. melonDS is not pixel-perfect but close. Pointless besides for passing aging cart tests.
Antialiasing over shadow pixels is glitched.
The scanline cache is not emulated (requires figuring out rasterizer timings, including VRAM access and all).
Capture addition and source selection are missing (have yet to find something that uses them).
Other than that, the mixer is complete and emulated with sample accuracy.
Memory access timing isn't emulated, however buffering mechanisms (FIFO) are implemented.
Much of wifi still has to be researched.
The current implementation allows some form of local multiplayer (and connecting to the internet with proper support), but communication errors aren't properly reported, which results in bad things. So far my attempts at fixing that only made things worse.
Wifi is subpar compared to the rest of the emulator :P
With that in mind, where do we go next?
I'm not sure about attempting to continue the JIT. Considering I went for accuracy, preserving it at a reasonable level with a JIT is going to prove tricky, even moreso when you're emulating two simultaneous CPUs and a bunch of extra hardware. Make it too accurate and the synchronization overhead negates any speed benefits from the JIT, but going too far in the other direction will inevitably break games.
DSi emulation is another of the possible avenues. There's not a lot of DSiware to play, and even less cartridge games, but regardless, there are things to be done there.
Or I might go and emulate something entirely new for me? N64? Dreamcast? Xbox?
|11 comments (last by Casgaro) | Post a comment|
May 13th 2018, by StapleButter
You probably have noticed it, things are going down.
It's been 5 months since the last release.
What do we have that would be worthy of a 0.7?
The JIT? I started working on it, and... lost motivation.
DLDI? Same story. I hackishly added some commands so it can access a FAT image, and lost motivation to take it any further. For example, accessing the actual host filesystem instead of having to use an image file.
I have pretty much lost motivation. The context I find myself in these days doesn't help, either. I'm mostly just... bouncing between places and having trouble getting really settled.
So for now, melonDS is on hiatus.
I feel bad for those who are still donating to the project. If you are, well... do whatever you want, but consider that melonDS isn't going to see progress for a good while, if not ever.
|20 comments (last by poudink) | Post a comment|
Long time no see
Apr 25th 2018, by StapleButter
Things have been pretty busy real life wise. Apologies for the lack of updates regarding melonDS.
You might know how things went lately. I started coding a JIT recompiler for melonDS, then... lost motivation. Oh well.
Instead, I figured I would work on other things. Like, y'know, homebrew. melonDS runs commercial games all neatly and all, but its homebrew support is still subpar.
For one, DLDI support is one of the things I intend to work on. And not just granting filesystem access to homebrew, but actually attempting to emulate one of those flashcarts. It'd be amusing if melonDS could run a flashcart firmware. Not very practical or useful when you can load your ROM directly, but it'd be a cool feat. Besides, it's something the DS can do, so melonDS should also be able to do it.
Even that aside, there are some technically challenging homebrew games. A prime example would be Dirbaio's Fireworlds which pushes the system to its limits (and is also a cool game, try it).
Dirbaio recently put together a NitroFS build of Fireworlds, so that it can run on emulators that don't support DLDI. To give you an idea:
• NO$GBA: crashes after intro
• DeSmuME: runs okay, but no music (console complains about zero-length channels, likely related)
• medusa: crashes when loading level select menu
• dasShiny: gets stuck on NitroFS init
A quick test revealed that it didn't run on melonDS, but it was a rather silly issue (it tried accessing IPCSYNC via 32-bit reads/writes, which melonDS didn't handle). Dirbaio fixed it in a PR, which means Fireworlds finally runs... but not perfectly, heh.
Fireworlds seems to do some weird partial rendering to reduce the 3D engine load (noting that the most extreme levels do cause lagging-3D-engine glitches on the DS), and using display capture to mix together all the parts, or something like that. But it doesn't work right on melonDS and results in some flickering.
So there's atleast that to fix. That aside, the game seems to run quite well. But hey, it's nice to have technically interesting homebrew like this.
Fun side fact: Fireworlds has code to detect emulators, and it doesn't detect melonDS or medusa :)
Soo... there we go!
|7 comments (last by its_notjack) | Post a comment|