Page 2 of 23

Re: Love.js - A Direct Emscripten Port

Posted: Sun Feb 07, 2016 6:29 pm
by Ranguna259
Awesome, now all we need is a new online love editor (since the old one broke down..)

Re: Love.js - A Direct Emscripten Port

Posted: Sun Feb 07, 2016 8:36 pm
by OttoRobba
That is awesome! Great job! If I could, I would star your repo a thousand times.

Re: Love.js - A Direct Emscripten Port

Posted: Sun Feb 07, 2016 8:56 pm
by Davidobot
My internet is a bit slow today, so github was downloading at 8 KB/s and I didn't have time to mess around with it just yet.
I just want to say thank you for your hard work, I hope this will turn into an official port someday!

Re: Love.js - A Direct Emscripten Port

Posted: Mon Feb 08, 2016 9:28 am
by Jack5500
Looks good, but judging from your github issues you seem to be stuck on the thread part, which is essential for several features.
Is that right?

Re: Love.js - A Direct Emscripten Port

Posted: Mon Feb 08, 2016 12:25 pm
by slime
Jack5500 wrote:you seem to be stuck on the thread part, which is essential for several features.
Is that right?
Emscripten doesn't support C threads at all. LÖVE internally uses C threads for a couple things (some audio decoding, as well as video decoding) – plus [wiki]love.thread[/wiki] uses them.
The audio and video decoding could be moved to the main thread though, at the cost of some framerate when they do large amounts of work.

Re: Love.js - A Direct Emscripten Port

Posted: Mon Feb 08, 2016 12:45 pm
by Jack5500
But that would require several changes in the Löve sourcecode, right? So it would be two casebases to maintain?

Re: Love.js - A Direct Emscripten Port

Posted: Mon Feb 08, 2016 2:47 pm
by bobbyjones
I had an idea although it's probably not a good one but if a JavaScript code path was used for audio and video they probably will be done by the browser in a separate thread. But idk how browsers do those kind of things.

Edit: and if it doesn't the codepath could use webworkers maybe. I'm sure there has to be a way to make audio and video happen on a separate thread. Probably would be more involved though.

Re: Love.js - A Direct Emscripten Port

Posted: Mon Feb 08, 2016 4:51 pm
by T-Bone
Tanner wrote:
T-Bone wrote:Does not work on IE on WP8.1, but that's sort of expected :P I'll try it on Edge once I upgrade to Windows 10.
Yeah.... :/ Internet Explorer is, well, it's something.
It's not as bad as its reputation, lots of complex Javascript and WebGL stuff work in it actually. It'll be interesting to see how much better Edge is at following standards.

Re: Love.js - A Direct Emscripten Port

Posted: Mon Feb 08, 2016 5:25 pm
by Tanner
I've update the repo with a fix for streaming audio. You'll notice that Mr. Rescue now sounds a lot better: http://tannerrogalsky.com/mrrescue/ (You may need to refresh that page if you've visited it before).

The change is under 20 lines of code, for those of you concerned about maintainability.
Video is still TODO.

Re: Love.js - A Direct Emscripten Port

Posted: Mon Feb 08, 2016 6:58 pm
by Ulydev
Just wanted to pass by and say a huge thanks for this project. Does it support shaders, and/or networking through sockets?