On Fri, Sep 23, 2011 at 09:21:34PM +0200, David REVOY wrote:
> 
> I presume the ideal to makes everyone happy ( without adding a
> preference box ) would be to store only last 10 strokes then older
> than this, store with depending of time. What you think about it ?
> (I don't know if something like this is possible)

I certainly would not hardcode "the last 10 strokes" for this (which seems
too many times to hack a key to feel comfortable), but the general idea
makes sense to me.  The first undo step should always be a short one (eg. 
something like "undo until the last pen-lift or at most 3 seconds, whichever
is shorter"), the second step can be a bit longer, and for additional undo
step we would tend to group several short strokes together more and more.

This could be implemented if we internally use only short undo steps, and
choose the step size at undo time.  This has the advantage that we also know
the future stroke duration when making the choice, which by itself might
already help to make more natural splits.  It increases memory usage a bit,
of course, if you have more undo steps.

We could even take it further by using the more fine-grained undo/redo steps
whenever the user changes between "redo" and "undo", so all the fine-grained
splits remain reachable (we "slow down" when the user changes direction).

For now, I simply have decreased the minimum stroke duration in git slightly
based on this feedback (it was 1.2 seconds, now it is 0.9 seconds).

-- 
Martin Renold

_______________________________________________
Mypaint-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/mypaint-discuss

Reply via email to