Snes9x2005, FCEUmm and Stella as lean WASM on a Samsung Tizen TV

I wanted to run libretro cores on my 2022 Samsung TV (Tizen 6.5), which is stuck on Chromium M85: no WASM SIMD, no threads, no SharedArrayBuffer. Standard WASM core builds don’t validate there.

I ended up compiling snes9x2005, FCEUmm and Stella 2014 to single-thread scalar WebAssembly (Emscripten 3.1.56, -mno-simd128, no pthreads), each pinned to a specific upstream commit with a reproducible build script. They run full speed in the TV’s WebView, driven by an 8BitDo gamepad, sideloaded as signed .wgt packages.

The frontend talks to each core through a thin adapter (init / runFrame / pushInput / getAudio / reset), so the same UI drives all three and adding a system is mostly a new adapter plus the core build. ROMs are loaded from memory (FILESYSTEM=0), audio goes through a ScriptProcessorNode at the real device sample rate, and there is an on-screen meter for real emulated frames per second.

Repos (MIT frontend, cores keep their licenses, build scripts included):

Short demos on the actual TV are linked in each README.

What I have in mind next is light arcade (MAME), and I expect this lean scalar WASM approach to carry me less far there: the wall stops being WASM validation and becomes raw CPU on this armv7 SoC. I am thinking of scoping it to early, lightweight titles (pre-1985) and I am not sure yet which core or build settings give the best shot on M85, whether a lighter MAME set (mame2000 / mame2003) or FBNeo. Any pointers from people who have pushed arcade cores into WASM, or know where the CPU budget realistically lands, would be very welcome.

mame2003 is likely to be a bit faster than FBNeo and will support more very-old-school games.

So, is the shared interface you’ve made a libretro frontend? Seems quite cool either way.

1 Like

Nice, I’ll start with mame2003.

And yes, it’s a libretro frontend, but just a minimal hand-rolled one, not RetroArch. Each core is a libretro core compiled to WebAssembly, driven through the standard retro_* entry points behind a thin adapter (init / runFrame / pushInput / getAudio).

1 Like