mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-26 12:21:08 +01:00
In a document whose frames take over 8 ms, every frame of an edit went to the render worker once the frame shown came from it, so a Pen drag's curve trailed the pointer by the worker's render time plus the wait for a busy worker. The changed part of a worker's frame is now drawn again on the UI thread, as it already was for frames rendered there, when the part's share of the frame's last render time is at most 8 ms. The part is not drawn there, and the frame goes to the worker as before, when the frame shown drew raster effects made before their objects moved, holds pixels copied from the worker's last frame, or drew art in a way that depends on the frame's size, or when the part itself draws such art. A worker frame on its way blocks the part only when it is of another document or not older than the edit. Part of #8296.