macosx: input manager: add a rate limit for INPUT_EVENT_POSITION
commitfb95315753577256aa708d005f45e05c474cce4c
authorDavid Fuhrmann <dfuhrmann@videolan.org>
Sat, 4 Feb 2017 14:50:39 +0000 (4 15:50 +0100)
committerDavid Fuhrmann <dfuhrmann@videolan.org>
Sat, 4 Feb 2017 14:54:28 +0000 (4 15:54 +0100)
tree672472cb3826680b01886756d8b4c80ecb6e9a76
parentf7a2fb1b801cc6b84e861d59705e9d1c13bf76ba
macosx: input manager: add a rate limit for INPUT_EVENT_POSITION

For certain demuxers like mkv, that event is triggered with
very high rates (>= 100 events per second), which is not needed
to update our second-based controls.

By rate limiting in this patch, total CPU reduction from 30 to
15 % can be observed.
modules/gui/macosx/VLCInputManager.h
modules/gui/macosx/VLCInputManager.m