hunterloftis / newton

A playful, particle-based physics engine designed from the ground up for JavaScript.
917 stars 49 forks source link

Physics for the lazy demo slow in Firefox. #29

Open DewiMorgan opened 10 years ago

DewiMorgan commented 10 years ago

Apologies if this is the wrong place - it's the closest I could find to a project related to your post "Physics for the lazy".

The line: ctx.globalCompositeOperation='overlay'; ...makes the demo insanely slow in FF.

The Firebug profiler shows that, with this line, the line: ctx.stroke(); ...uses about 99.99% of the cpu time.

The demo runs at a normal speed without the 'overlay' setting.

System: FF29.0.1, Win 7, Nvidia GeForce GT 650M

hunterloftis commented 10 years ago

Nice, thanks for the info! You got pretty close to the playfuljs issues page :) It's here in case you see anything in the future:

https://github.com/hunterloftis/playfuljs/issues