night-vision icon indicating copy to clipboard operation
night-vision copied to clipboard

Interesting problem with double-updates

Open C451 opened this issue 2 years ago • 1 comments

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).

C451 avatar Nov 11 '22 12:11 C451

Could throttling the event handler (to 60hz/16ms) be a solution ? Using requestAnimationFrame could also work I guess

TranceGeniK avatar Jun 15 '23 04:06 TranceGeniK