night-vision
night-vision copied to clipboard
Interesting problem with double-updates
For some reason mousezoom method generates 240 updates / second on a 120Hz macbook pro. On an older mac with 60hz it generates usual 60 upd/sec.
The goal is to somehow figure this out. The problem is important because it directly affects the performance (when scrolling with touchpad).
Could throttling the event handler (to 60hz/16ms) be a solution ? Using requestAnimationFrame could also work I guess