increpare / PuzzleScript

Open Source HTML5 Puzzle Game Engine
MIT License
903 stars 160 forks source link

increase compilation speed #153

Closed increpare closed 7 years ago

increpare commented 10 years ago

With the object/layer limit removed, compilation time is going to get bigger - and this effects loading times quite a bit for both play.html and exported files. It's had zero optimization so far, so likely there are a bunch of things that could be profitably looked at.

mechturk commented 10 years ago

So I'm happy to look at this, but have NFI how to use jsperf with puzzlescript. Any tips for players new to the game?

increpare commented 10 years ago

Jsperf is more for once-off small benchmarks. I'd try out the firefox and chrome profilers on the test suit (maybe pick one or two examples from the suite) and try to speed up their compilation.

Chrome's profiler has cool flame charts, but I remember firefox's giving more detail -

http://addyosmani.com/blog/wp-content/uploads/2013/08/Screen-Shot-2013-08-29-at-22.27.11.png

mechturk commented 10 years ago

Ah cool. That's what I've been doing.

increpare commented 7 years ago

good enough for now innit