mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-02 06:20:48 +01:00
Clear (and the background-colour fill it does on a Background layer) read the whole selection bounds into one float buffer, looked the selection up in its tile map once per pixel and wrote every tile back, single-threaded. On an 8000x6000 layer that took about 2 s (3 s on the Background). It now edits the encoded tiles in parallel, drops fully cleared tiles, shares one solid tile for fully covered opaque fills and copies a tile only when a pixel in it changes. Results match the old pass exactly; 20-110 ms on the same documents. Fixes #3463 Co-authored-by: Fabio Lussi <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>