News for hackers. Stuff that matters.
Re:StageXL: fast and universal 2D rendering engine for HTML5... by mkesper on Monday January 11, 2016 @09:03AM (#10880770)
StageXL started as an easy migration path for Adobe Flash developers and their products to HTML5. Therefore StageXL provides the same display list API you may have used in Flash for many years. Furthermore the Dart programming language is easy to use for everyone who is familiar with ActionScript.
Re:StageXL: fast and universal 2D rendering engine for HTML5... by talmand on Monday January 11, 2016 @10:06AM (#10881110)
CreateJS is the same concept but with Javascript.
Re:StageXL: fast and universal 2D rendering engine for HTML5... by bp74 on Monday January 11, 2016 @10:14AM (#10881170)
Yes, CreateJS was one of the first libraries providing a Flash display list in HTML5. But CreateJS uses the Canvas2D api and a very limited WebGL implementation. StageXL provides much more features with full WebGL support.
Re:StageXL: fast and universal 2D rendering engine for HTML5... by talmand on Monday January 11, 2016 @12:46PM (#10881868)
You are indeed correct, but I fail to see what WebGL support has to do with pointing out another library that uses the Flash display list concept. I wasn't saying one was better than the other.
Re:StageXL: fast and universal 2D rendering engine for HTML5... by JoeSloth on Monday January 11, 2016 @10:17AM (#10881189)
Seems similar to Pixi js. I like that Pixi uses WebGL though, with a canvas fallback. It also uses a Flash-esque API
Re:StageXL: fast and universal 2D rendering engine for HTML5... by bp74 on Monday January 11, 2016 @11:08AM (#10881216)
StageXL does also use WebGL with a fallback to Canvas. Fortunately, most browsers supports WebGL nowadays.
Re:StageXL: fast and universal 2D rendering engine for HTML5... by jbrantly on Monday January 11, 2016 @02:07PM (#10882431)
Is there a feature comparison with Pixi somewhere? Why would one pick StageXL over Pixi, for example?
Re:StageXL: fast and universal 2D rendering engine for HTML5... by bp74 on Monday January 11, 2016 @02:32PM (#10882674)
Sorry i missed your second question. I would choose StageXL over PixiJS because auf the Dart language. I also use TypeScript for other project but i prefer Dart. The Dart-to-JavaScript compiler does an awesome job. It not only transpiles Dart code to JavaScript (like the TypeScript compiler does for TypeScript) but it's a real compiler with great optimization and minification. The optimizations include inlining, dead code removal, hoisting, etc. The resulting JavaScript code is not pretty to look at, but pretty damned fast at runtime.
Re:StageXL: fast and universal 2D rendering engine for HTML5... by jbrantly on Monday January 11, 2016 @03:06PM (#10882998)
Thank you for both of your replies
Re:StageXL: fast and universal 2D rendering engine for HTML5... by bp74 on Monday January 11, 2016 @02:26PM (#10882604)
Unfortunately no, but i'm not aware of any major feature that is not supported in comparision to Pixi.js. If you find something missing in StageXL i'm happy to receive a feature request :)