The current one can discard points where the direction changes. Fortunately, it looks like someone smarter than me already figured out a good simplification algorithm specifically for stroke gestures: https://invent.kde.org/plasma/kwin/-/blob/work/jpetso/stroke-basics/src/stroke_input_filter.cpp.