Simbuino4Web released (was Simbuino emulator running in...)

Libraries, utilities, bootloaders...

Simbuino4Web released (was Simbuino emulator running in...)

Postby Myndale » Thu Apr 28, 2016 5:28 am

I don't normally like to announce things like this before they're ready but here's a sneak peak at a work-in-progress. I've got some upcoming work on an unrelated project that involves migrating some back-end web code client-side and it dawned on me that Simbuino would make an ideal test case. This is an initial port of the core emulator code to Javascript, running under Chrome on a Surface Pro 2:



(Once again you'll have to ignore my total inability to play games and record video at the same time). No sound yet (that'll be next) and there's still some major optimization work to go in, but I'm quietly confident that it can be made to run at full-speed on current high-end mobile phones. Never as good as the real thing of course, but it should open up Simbuino development to any moderately capable device that has a web browser.

UPDATE: This is now playable at http://simbuino4web.ppl-pilot.com/. Input controls are keyboard only, I'll add some buttons soon. Only been tested on Chrome, it does run on Internet Explorer but very slowly and with no sound.
Myndale
 
Posts: 507
Joined: Sat Mar 01, 2014 1:25 am

Re: Simbuino emulator running in a browser

Postby Drakker » Thu Apr 28, 2016 10:14 am

Simbuino goes cross-platform! Thank you Myndale. The need to reboot or screw around with a damned Windows virtual machine is a real obstacle for me. Looks like this problem will go away soon enough. :)
User avatar
Drakker
 
Posts: 297
Joined: Sun Mar 30, 2014 2:54 am
Location: Québec, Canada

Re: Simbuino emulator running in a browser

Postby Sorunome » Thu Apr 28, 2016 12:37 pm

This is looking quite awesome!

Perhaps you could make a cross-platform offline version using node.js?

Does it emulate sd cards?
User avatar
Sorunome
 
Posts: 629
Joined: Sun Mar 01, 2015 1:58 pm

Re: Simbuino emulator running in a browser

Postby erico » Thu Apr 28, 2016 3:29 pm

Very nice, the performance on the video looks quite good on my end. :)
User avatar
erico
 
Posts: 671
Joined: Thu Mar 27, 2014 9:29 pm
Location: Brazil

Re: Simbuino emulator running in a browser

Postby deeph » Thu Apr 28, 2016 4:48 pm

SD card emulation would indeed be really, really great ;)
deeph
 
Posts: 52
Joined: Mon Jul 13, 2015 6:09 am
Location: France

Re: Simbuino emulator running in a browser

Postby blakewford » Fri Apr 29, 2016 12:01 am

Love it.
blakewford
 
Posts: 39
Joined: Tue Oct 21, 2014 4:15 am

Re: Simbuino emulator running in a browser

Postby Myndale » Fri Apr 29, 2016 7:47 am

The SD code has already been ported but I'm not sure how to do partial reads of local files in html5, so the file read itself is currently commented out. I'm loading local HEX files no problem, but I'd like to avoid loading entire IMG files into the browser's virtual machine if I can help it.

I did manage to test a few games on my Samsung Note 5 today, it's running at around 12Mhz which is about half that of my desktop machine. I actually implemented a JIT compiler on almost every instruction expecting a massive speed-up and it actually slowed down! No idea what's going on there, I suspect that Chrome doesn't do it's own JIT on scripts that are generated at runtime and "compiled" with eval().
Myndale
 
Posts: 507
Joined: Sat Mar 01, 2014 1:25 am

Re: Simbuino4Web released (was Simbuino emulator running in.

Postby Myndale » Tue May 03, 2016 2:46 am

I've put this online now if anyone wants a play, there's a link in the first post of this thread. Lemme know what you think! :)
Myndale
 
Posts: 507
Joined: Sat Mar 01, 2014 1:25 am

Re: Simbuino4Web released (was Simbuino emulator running in.

Postby mougino » Tue May 03, 2016 5:58 pm

Hi Myndale, tested it with a fex HEX on Chrome, runs smoothly ;)
Have you planned making the code available? I'd love to see an Arduboy version of this web emulator!

Nicolas
User avatar
mougino
 
Posts: 75
Joined: Sat Jul 25, 2015 8:15 am
Location: Paris, France

Re: Simbuino4Web released (was Simbuino emulator running in.

Postby mougino » Tue May 03, 2016 6:23 pm

Ah yes, a little complaint sorry ;)
I have a French AZERTY keyboard, with it your emulator controls are super hard!
Look what my fingers must do: :lol:

Image
User avatar
mougino
 
Posts: 75
Joined: Sat Jul 25, 2015 8:15 am
Location: Paris, France

Next

Return to Software Development

Who is online

Users browsing this forum: No registered users and 0 guests

cron