Live data from Hacker News

Retro Boy: simple Game Boy emulator written in Rust, can be played on the web

github.com

1–10 of 108 posts

Re: Retro Boy: simple Game Boy emulator written in Rust, can be played on the web

#3
This is awesome! Very nicely done. I hear a few problems with the audio emulation, (mostly clicks that shouldn't be there) but it's been a long while since I had my head wrapped around Gameboy emulation. I'm not sure I know what's going wrong exactly.

I love how Rust+WASM is an enabler for showing off applications like this which would traditionally be restricted to a desktop environment. Here's my own, an NES emulator, using wasm-bindgen for the translation but otherwise a similar setup:

https://rustico.reploid.cafe/?cartridge=patreon/tactus-v0.7-...

It's so cool to work on a bit of homebrew, then be able to share a link with someone and have it "just work" in their browser. No weird tools, no shady sites, just my game and their feedback.

Re: Retro Boy: simple Game Boy emulator written in Rust, can be played on the web

#6
post #2

Looks like an awesome addition to the GB emulation world! I know GB Studio can export a web player—I wonder if this implementation has some advantages.

I’ll definitely have a look and see if there’s any advantages. Currently using binjgb in GB Studio and been pretty happy with it https://github.com/binji/binjgb

Re: Retro Boy: simple Game Boy emulator written in Rust, can be played on the web

#7
post #2

Looks like an awesome addition to the GB emulation world! I know GB Studio can export a web player—I wonder if this implementation has some advantages.

One major disadvantage is that this one doesn't seem to have an OSS license :(

Re: Retro Boy: simple Game Boy emulator written in Rust, can be played on the web

#9
post #3

This is awesome! Very nicely done. I hear a few problems with the audio emulation, (mostly clicks that shouldn't be there) but it's been a long while since I had my head wrapped around Gameboy emulation. I'm not sure I know what's going wrong exactly. I love how Rust+WASM is an enabler for showing off applications like this which would traditionally be restricted to a desktop environment. Here's my own, an NES emulat…

> I hear a few problems with the audio emulation, (mostly clicks that shouldn't be there)

Almost anything WASM+Audio seems to do that in browsers today, unless you're really really careful about what you're doing and leverage multiple threads. I think the issue is mostly around single-thread contexts, where it has to switch between playing audio and other things.

I hit the very same issue myself with Bevy not too long time ago, and tracking this issue which has some further links if you wanna go down a rabbit-hole: https://github.com/bevyengine/bevy/issues/4078

Post reply on HN