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):
- SNES (snes9x2005): https://github.com/mendes79/SNES-Tizen-Emulator
- NES (FCEUmm): https://github.com/mendes79/NES-Tizen-Emulator
- Atari 2600 (Stella 2014): https://github.com/mendes79/Atari-2600-Tizen-Emulator
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.