mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-24 09:46:59 -06:00
Review follow-up (CodeRabbit): a large dithered gradient mostly off-screen sampled its whole grid (up to 4096 x 4096 cells, 64 MiB) to draw a small visible part, and did it again on each zoom step. The renderer now samples only the cells the render target can show, a cell more each way for the bilinear mix, snapped out to 256-cell tiles so a pan within them reuses the grid. Cells keep their place in the whole grid, so the gradient and its noise are the same pixels as before (GradientPaint::pixels_within).