mirror of
https://github.com/storytold/photocraft.git
synced 2026-11-21 09:26:43 +00:00
A dab that painted past a layer's stored tiles changed its resident page region, which recreated the texture and converted and uploaded every tile of the layer in that page cell again. Copy the overlap from the old texture on the GPU instead (in its own submission, ahead of the queued tile writes) and keep its tile map, so only new or changed tiles upload. 32-bit float RGB/gray tiles also convert to RGBA16F straight from their samples (same bytes as the general path) instead of decoding into a float buffer and converting pixel by pixel. P16 (32-bit, 20 layers) brush dab + refresh, median of 6 alternating runs: p50 8.9 -> 3.1 ms, p95 27.2 -> 7.5 ms. P13 is unchanged (~1.6 / ~4.5 ms). Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>