Skip to content

plugins/shakedetector: Optimize ShakeDetector

Yifan Zhu requested to merge work/fanzhuyifan/shake into master

Only store one history item for movement in the same direction. With this optimization I measure m_history.size() <= 15 for all kinds of movements, including back and forth, and circular.

Merge request reports