oftn-oswg / suit-js

A slick user-interface toolkit created in JavaScript for use with HTML5 canvas.
http://oftn.org/projects/suit/
Other
10 stars 1 forks source link

Firefox is slow #1

Closed dsamarin closed 13 years ago

dsamarin commented 13 years ago

When testing the suit demo on Firefox, it is noticeably slower than in Google Chrome. The main slowness comes from the fact that events like scrolling/mouse moving/etc come in too fast. Instead of queuing redraws every X milliseconds (slow on all browsers), events should be queued up and deployed as a single event. For example, multiple scroll events should be combined and the wheel deltas should be added together.

dsamarin commented 13 years ago

Throttling is the best way to fix problems like these, because by tackling the source of the events, less code is run in the long run. Mouse scrolling slowness in Firefox has been fixed, without noticeably affecting scrolling in Chrome.