scrime-u-bordeaux / web-midifile-performer

a web version of the midifile performer software
0 stars 0 forks source link

Throttle index change on cursor slide #52

Closed NyuBlara closed 5 hours ago

NyuBlara commented 8 months ago

Wait until the cursor has stopped to change the index. Currently, this is done while the cursor is still moving, which, during play, induces significant lag.

NyuBlara commented 5 hours ago

Throttling works better, and has been implemented with lodash.throttle. The app still accumulates lag over time, which is its own problem, but this issue has been significantly reduced.