mirror of
https://github.com/storytold/photocraft.git
synced 2026-10-26 19:07:06 -06:00
On macOS the brush outline fell back to the app-drawn outline past 255 points, and that outline trails the pointer by 26 ms on a 120 Hz Mac (syncroot's measurement in #1343): a 1000 px brush at fit, or 300 px at 200 %. AppKit sets no size limit on an NSCursor image, so macOS now takes the same 2048 cap as Windows. Linux keeps 255 for X servers and hardware cursor planes. A circle's bitmap evaluated every pixel of its square, though only a thin ring is painted: a 1000 px radius took 41.6 ms per bitmap, a hitch on each zoom step or [ / ] resize (on Windows too). Only the ring's two arcs per row, and the centre mark, are evaluated now, on a transparent buffer: 6.2 ms (radius 500: 10.6 -> 1.7 ms), identical pixels. App-drawn tip outlines likewise only write the pixels their segments splat.