Now working on Firefox and other browsers.
2015-04-14 21:45:08 by XIX

After some considerable work we now have an Emscripten build as well as a NaCl build. Originally I tried using Pepper.js which seemed like a quicker port as we could just reused the exact same pepper API calls but sadly its missing plenty of mappings to needed API calls and I had to switch to a native Emscripten build to get things working.

Not too hard to achieve but it took a few days of fighting APIs and building annoying wrapper code so we can treat everything the same. It's a real shame we cant do proper threads under Emscripten as I can see that causing future problems even if I have been avoiding threads so far. Still the number of CPU cores is only going to increase and this is going to be a real problem for future JS based performance.

What this all means to you dear reader is that the web version of Swanky Paint should now work on any browser that has working javascript and WebGL. The WebGL is the only problematic dependency as sometimes browsers blacklist graphics cards with bad drivers and this becomes disabled even if the machine is capable of supporting it.

The order of engine preference is pNaCl under Google Chrome then asm.js under Firefox, if it works well in any other browser then it's a miracle... So far I've had no luck with it working under Android but maybe it will on some other devices.



So Google Chrome (not Chromium as it may have NaCl disabled) is still recommended but no longer required.


More posts
PREVNEXT
posted by JetSet211 on 2015-04-27 02:18:01 (9 years ago)
bless
posted by JetSet211 on 2015-04-27 02:17:27 (9 years ago)
ayyy that means im back baaaabyyy
3 months ago Kantdomuch commented on swanky
5 months ago shi commented on swanky
5 months ago shi commented on swanky
5 months ago shi commented on swanky
5 months ago shi commented on swanky
5 months ago shi commented on swanky
5 months ago shi commented on swanky
5 months ago shi commented on swanky
5 months ago shi commented on swanky
5 months ago shi commented on swanky
5 months ago shi commented on swanky
5 months ago shi commented on swanky
5 months ago shi commented on swanky
5 months ago shi commented on swanky
5 months ago shi commented on swanky
5 months ago shi commented on swanky
5 months ago shi commented on swanky
5 months ago shi commented on swanky
5 months ago shi commented on swanky
5 months ago shi commented on swanky
5 months ago shi commented on swanky
5 months ago shi commented on swanky
5 months ago shi commented on swanky
5 months ago shi commented on swanky
5 months ago shi commented on swanky
5 months ago shi commented on swanky
5 months ago shi commented on swanky
5 months ago shi commented on swanky
5 months ago shi commented on swanky
5 months ago shi commented on swanky
5 months ago shi commented on swanky
5 months ago shi commented on swanky
5 months ago shi commented on swanky
5 months ago shi commented on swanky
5 months ago shi commented on swanky
5 months ago shi commented on swanky
21 months ago Excalibur commented on swanky
21 months ago kanty commented on swanky
21 months ago Excalibur commented on swanky
21 months ago Excalibur commented on swanky
21 months ago kanty commented on swanky
21 months ago kanty commented on swanky
21 months ago kanty commented on swanky
21 months ago love commented on swanky
21 months ago love commented on swanky
5 years ago milquetoastable commented on profile of milquetoastable
5 years ago milquetoastable commented on profile of milquetoastable
5 years ago crustolio commented on profile of crustolio
6 years ago kanty commented on swanky
6 years ago kanty commented on swanky
SWANKYART is a new kind of pixel art community based on daily challenges of restricted palettes & effects using the online version of the pixel paint package, Swanky Paint.
Swanky Art is optimised for browsers that support Native Client but should run fine on any browser with WebGL support.
Found a bug? Post them and feature requests on the forum.
Artwork created for Swanky Art released under the Creative Commons License license. Made by W E T G E N E S 2016