trezor-firmware icon indicating copy to clipboard operation
trezor-firmware copied to clipboard

SDL event queue overhelming

Open cepetr opened this issue 1 year ago • 0 comments

If touch_read() function isn't called frequently enough (<10ms), the SDL event queue can be became overhelmed by SDL_MOUSEMOTION events. This can result in delayed UI reactions and unexpected behaviour.

We didn't observe this behaviour until I began experimenting with animations on the display (when call to touch_read() are less frequent).

A simple solution is to merge succesive SDL_MOUSEMOTION events into one when the touch_read() function is called.

cepetr avatar Jan 30 '24 07:01 cepetr