Files
vectorcraft/crates/engine/src/session
dotCooCoo f080afc4ae Pencil: the moves of one frame preview the stroke once
The canvas hands every pointer move of a frame to the freehand tools, and
each move ran a full preview: the stroke was fitted again, inserted into
the document and run through every post-edit pass, and the next move's
preview threw it away. A pen or a fast mouse delivers several moves per
frame, so drawing slowed down with both the move rate and the document
size (#4343).

- SessionTool keeps the drag samples of a pass and hands them, with the
  release when it comes in the same pass, to the new
  Session::pointer_samples. Every other tool call hands them over first,
  so the order of events does not change.
- Session::pointer_samples feeds every sample to the tool and applies
  only the last preview of each run of previews of one command. The held
  preview is applied before the release and before any other action.
- Every preview still runs during a Global Edit, with Objects on Path
  selected, with more than one object selected, and with New Art Has
  Basic Appearance off when the stroke began with a selection, since a
  preview there changes what the next sample reads. The decision is
  made again after each event that is not a drag.
2026-12-04 05:31:32 -08:00
..