Open errogaht opened 9 years ago
Hi!
Yes, unfortunately... I actually noticed for Firefox. I'll try to improve performance for the future releases ;)
Too bad, it crashed my session on Firefox.
Hi @VincentGarreau I'm willing to fix this issue if you can mentor me through this bug. Any idea why its lagging on Firefox or what sections of the code I should look into that might be causing these performance issues?
@VincentGarreau if 'distanceParticles' is commented out, then the lag goes away
This might not be solvable because Firefox has some serious issues with lineTo. It's 21x slower than chrome: http://jsperf.com/draw-lines
I tried making a minimal proof of concept drawing 300 lines (no animation, no alpha transparency) and the performance degrades quickly with canvas size, it's completely unusable on rMBP. Mozilla also seem to be aware lineTo is slow: https://bugzilla.mozilla.org/show_bug.cgi?id=1001954
My small demo page drawing 300 lines: http://jsfiddle.net/4ry8pdpb/1/, in my actual project it's closer to 600 lines that's rendered effortlessly by chrome.
Thanks for your detailed explanation @Celc! I noticed that Firefox has serious issues with lineTo, and your explanation enlightened me. I hope it will be fixed soon...
Hello! in chrome it works well, but ofcourse it lags in FireFox, very slow, and lags.