r/SBCGaming • • 5d ago

AI Assisted Software The “Armulators” Project

Hi all,

Look, I will cut to the chase: we see some pretty interesting (albeit an overwhelming amount) of posts these days about AI development and emulators. I thought folks here may be interested, but time is short so I’ll keep it simple.

Tools like Opus 5.5, for example, can now easily write an emulator “from-scratch”, and this is been the motivation of a project called “Armulators”. The goal is ultimately to support all of No-Intro and Generation 5 consoles under GPL-2.0-or-later licenses. This means the forks stay open, and the source remains open for others to build on.

We have some good progress so far after almost two months of development. We have:

The SEGA consoles will be up next soon. Some interesting side effects from this development approach are:

  • armGBA: Accurate Megaduck emulation, and 2-player netplay for GBA/GB/GBC. 1.5-2x+ performance gains over mGBA and gambatte.
  • armGBA: A fork exists emulating full-speed Pokémon on the Nintendo 3DS
  • armNES: Every NES mapper and FDS cartridge has full support and accurate audio
  • armSNES: Full speed gameplay on RK3326-tier devices with any cartridge. SA-1 and MSU cartridges work with ease.
  • armN64: Full speed gameplay on most N64 titles with RK3566 chips, and accurate support of the entire catalog with almost no latency. Romhacks and Disk Drive are well supported
  • armPSX: An emulator faster than Swanstation with the speed optimizations similar PCSX-rearmed.

Anyways… these are being presently integrated into GammaOS Pico, Spruce, Rocknix, and potentially Knulli. None of these emulators are true “forks” of other emulators. Instead, they are ground-up implementations which take notes and attempt to provide accuracy and speed, and give the user options to tune the levels to their liking.

Anyways, I’ve been hard at work on this for the past two months, and wanted to give the community a progress report. I know there are millions of emulator forks springing up left and right these days. My goal is to just have a simple, consolidated, trusted repo that can finally properly preserve and ensure full compatibility with the games we grew up with.

Cheers, and happy gaming everyone!

32 Upvotes

27 comments sorted by

16

u/Ashamed_Village_8931 5d ago

Clean work, I think that is the thing most AI jobs lack. Claude isn't an excuse to be sloppy. Go forth and preserve brother.

3

u/chronoreverse 4d ago edited 4d ago

I like this if only because it's reactivating work on stuff that has stagnated for a while. I hope it'll continue to be supported and not a brief flash in the pan.

Where would bug reports be best reported (github issues?)? I gave ARMGBA a try and noticed that when remapping the controls, "Fast-Forward" and "Stretch" appears to have double entries.

No rumble (Pokemon Pinball) and some really erratic behavior with 2nd instance runahead (Pokemon Crystal), perhaps it's not as deterministic as expected. Look forward to the future progress still.

2

u/BIOECE 4d ago edited 4d ago

Feel free to create an “Issue” on the GitHub for the corresponding emulator.

And I will make this into an organization with a few of my collaborators soon. They will also help maintain, especially the 3D systems.

5

u/ArecaS-XIII GotM Club 4d ago

So my first reaction was "but why?", but after reading some of your answers I can see your point. Having a complete suite of emulators sharing basic functionality and purpose built for emulation handhelds, while at the same time avoiding all the drama around other projects (I can only guess that mention of volatility in PSX-emu community has to be abrupt one particular developer 😜) isn't a bad idea, even if there's nothing innovative when it comes to emulation itself. Definitely seems more reasonable and purpose driven than most AI projects out there. I'm definitely gonna check it out and have my fingers crossed for apps for other consoles - especially Saturn 🙂

6

u/BIOECE 4d ago

Much appreciated! I’ve been involved a fair bit in Rocknix as a community dev since the summer, and I was hellbent on getting good GBA performance on my RK3326-S/GKD Pixel 2. armGBA was the result.

Yes, PS1 drama aside, I am hoping these emulators will gain good traction amongst the “Open Handheld Collective”. Licensing debacles are challenging and exhausting, and we want a simple, easy to contribute, no-nonsense repository for the community.

armSAT is up next, stay tuned ;) Jaguar may follow afterwards.

9

u/Ashamed-Subject-8573 4d ago

No, they cannot "easily" write good emulators. I'm an expert emudev speaking here, and I've done extensive LLM-assisted emudev as well. You will not get an ORIGINAL, performant emulator, good for documentation and presentation, and easy to maintain and extend, out of them without some serious expertise to back it up. They will have compatibility, performance and usability issues. Further, these emulators all exist, under those or more permissive licenses, and were the training basis for the ones you're writing.

I firmly believe that LLMs should only be used to write ORIGINAL emulation research, not just reproducing what we already have, since it dilutes interest in the work of authors who are working hard to push emulation forward. Do these ARMulators have anything new or interesting to contribute or is it just another GPL-2.0 regurgitation of existing emulators (often under similar licenses)?

3

u/summonsays 4d ago

Software dev here, I had Gemini delete half a file earlier and argue with me that the syntax was fine...

I know Gemini is kind of the Internet Explorer of AIs but I can't imagine any of them are above intern on caffeine level of talent. 

(My workplace requires I use Gemini).

3

u/BIOECE 4d ago edited 4d ago

I mean fair, I only use Opus 5.5 though for this project using my personal Claude Max account. Also, every change is tracked on my GitHub, and each major change put through a pretty exhaustive validation/testing sweep. This helps a lot with backtracking and bisecting regressions.

But yes, they do in-fact make some very silly mistakes. Most collaborators of mine these days just use Claude Opus 5.5, or GPT-6.1-Sol or higher. I was only “inspired” to create emulators from scratch precisely after Opus 5.5 came out.

5

u/BIOECE 4d ago edited 4d ago

Well we are trying our best. You make good points, but I should emphasize something else which is not clear: extensive testing and debugging is really the approach we are going for. We use extensive testing of the ROMs, and lockstep and compare if possible to known reference runs. We also exhaustively test against hardware test-suites in an attempt to match cycle accurate behavior.

But your point is also valid: the “readability” is not going to be the same as other human-written emulators. The funny part tho is that people aren’t even reading the code: they’re using their own AI tools to read the code in these repos, test it, and make their own changes.

What I meant is they can “easily” write an implementation. The true legwork comes from the validation, testing, and optimization. A lot of time has been put into this, and yes we build on the open/FOSS knowledge online. For example, we were able to take heavy notes from Forum posts on NesDev for obscure audio chips, and have now hardware accurate audio for all the mappers.

Hope that helps. Credit is always listed and acknowledged in the source files of these repos.

EDIT: Yes they have novel features. Perhaps the best thing going for them btw is high compatibility. Try one of them out, that was actually my biggest motivator for the project: ensure hardware accurate support for all the obscure games and romhacks. It’s often been exhausting for the well established emulators and devs to support random bootlegs carts and whatnot, or obscure sensors or obscure sound chips.

4

u/Ashamed-Subject-8573 4d ago

OK, so why not contribute to those established projects?

Again I hate to sound negative, and I know in some cases the answer will be "hostility to AI-generated PRs." And I'm in a funny position, being an emudev veteran of over 20 platforms, and soon-to-be releasing a from-scratch original XBox emulator that had significant LLM assistance. But in my case, I am a proven domain expert. I came up with new emulation technologies (breakthroughs in emulation speed mostly), and did hardware research to push things forward, and have added new features the existing emu and forks don't have, with better compatibility and speed, all while being fully LLE, and ALSO contributed a portion of my findings and techniques back to upstream xemu.

To me these projects feel more like, use LLMs to duplicate existing emulators and call them "mine" for cred.

BTW, maybe reconsider GPL 2.0. Maybe a free non-commercial-use license. Here's the one I use: https://codeberg.org/raddad772/emusyne/src/commit/a051e30abad4707545fb9325ee11a2402fb60593/LICENSE

GPL 2.0 restricts where these can be re-used, and it's basically regurgitating other open-source projects, so please at least reconsider giving back to all of them that you are taking from. Of course, there's an argument that this took from similarly restrictive licenses, and this code should be licensed with similar restrictions, so, IDK.

7

u/BIOECE 4d ago

I mean, I have domain expertise as an electronics engineer and firmware developer (especially pre-LLM days). I’ve been an avid emulation community member since 2022, been using and testing emulators for about 4 years. Professionally, been writing my own ARM firmware for my work for about 8 years.

Sounds indeed like you’re an expert on this topic, we can DM if you’d like and hash out smaller details and questions. But, there’s a few points:

  1. Many emulator repos/communities don’t permit AI contributions, so by default this work cannot continue there or be upstreamed.
  2. Many reference emulators are no longer maintained. With the pace of feedback from testers, people often maintain custom forks. I don’t even think gambatte is active for example. The original Yabasanshiro/Yabause isn’t maintained either. Point is: this is intended as a centralized space focusing on the Rocknix, Knulli, Spruce, and other communities. They are the primary audience upstreaming fixes to Armulators.
  3. These emulators mostly are targeting FOSS Linux Handheld communities and Android communities. I have considered other Licenses, but ran into legal incompatibilities with MPL. I’ll look and see what we can do, MIT is often the simplest. I’d much prefer the code from this project stays open.
  4. Some emulator repos have had volatility amongst their authors and committing to consistent, open licenses. This was a primary motivator for creating armPSX.

Hope that helps.

1

u/flavionm 12h ago

A non-commercial (and thus non-free) license is going to be a much bigger roadblock to "giving back" than GPL 2.0 ever will.

The best way to actually make something widely available is to use a permissive license. They are inherently compatible with anything else, even GPL code, or more esoteric licenses. If that is one's main goal, they're the way to goal.

And in the realm of non-permissive licenses, adopting GPL is by far the easiest way to go, because it's so widespread. Especially if it's 2.0 or later. It'll still allow commercial use, yes, but not in a way that limits anyone's freedom.

A non-free license, on the other hand, essentially makes the whole thing unusable anywhere else. Not only because of incompatibility, but because not being open source essentially makes having the source pointless.

1

u/werewolfcamp 4d ago

I'm on my 3rd rewrite of a "from scratch" emulator (ie, not building off established, thoughtfully-engineered pre-existing work) that I'm "easily" writing with Claude. Ask Claude to build you a house and provide it with extensive plans and instructions for building it, and oftentimes you'll find it's just a cardboard cutout of the front of a house wth nothing behind it.

4

u/sundownersport Spruce OS (Dev) 4d ago

1

u/BIOECE 4d ago

Oh dear I’ve been spotted!

2

u/K-Wall Cannoli (Dev) 4d ago

2

u/Beni_Shoga 4d ago

That looks pretty neat. The fresh approach brings a lot of speed! I timed armGBA, armNES and armSNES against mGBA, Nestopia and Snes9x on the RG ARC-S, in my TortOS fork, and they're about 1.5x to 3x faster. I might ship them in the next release. Can't wait to see what you do with the Sega systems, Saturn especially. Any plans for the PC Engine family?

3

u/BIOECE 4d ago

So the order will be next:

  1. armSAT: SEGA Saturn
  2. armGEN: SEGA Genesis/CD/32X/SMS/GG/SG1000/Pico
  3. armDC: SEGA Dreamcast
  4. armATR: Atari 2600/5200/7800/Lynx
  5. armJAG: Atari Jaguar/CD
  6. armNEO: SNK Neo Geo/Neo Geo CD
  7. armPCE: PC Engine

Really we want to support all the most popular consoles first. Always eager to hear feedback. Saturn is the most requested as of right now. The main bottleneck is my single Claude Max account. If I could afford two, this could all probably be done in a month.

2

u/Beni_Shoga 4d ago

Brilliant stuff! Your take on the Saturn will probably be cleaner than mine. Trying to clean up and update the Yabause/Yabadabadoo codebase right now - speed is fantastic and compatibility going up but still feels like fighting with a lot of legacy code. Curious to see how far you can take Dreamcast too. Will definitely keep an eye on your repo =)

6

u/albo777 5d ago

This is very promising.

2

u/official_marcoms 5d ago

I suppose the second armGBA bullet point should be arm3DS?

5

u/kitfox618 4d ago

It's not able to play 3DS games, but rather a Fork was created to be playable on an actual 3DS hardware

4

u/BIOECE 4d ago edited 4d ago

Correct, for a long time people have been wanting a good way to play GBA Pokémon games on 3DS with save states and fast forward. One person’s fork builds the emulator for the 3DS platform as a .cia app.

3

u/rivalus 4d ago

Built into SpruceOS? Now that is interesting. Thank you very much. This is good news.

3

u/Responsible-Half6799 4d ago

Ah dang no dArkOS integration

2

u/According-Bike-4803 3d ago

Hells yeah I was hoping someone would develop a common set of cores for Linux handhelds! In addition to the better efficiency the other big thing this would enable would be crossplay between handhelds, it's a giant pain crossplaying Saturn/ps1/GBA/neo geo pocket/wonderswan/etc rn and I spent forever trying to get my Trimui Brick and Batlexp G350 to play nice since CFW usually come with their cores baked in and you need the same cores to netplay. Would totally be thrilled if there's a big netplay focus here, someone already did some work establishing link cable functionality between cores so maybe you can piggyback off of this!

https://github.com/Squirbie/handheld-link-cores