Skip to content

Picnido 1.3.9

Latest

Choose a tag to compare

@sosoddosgithub sosoddosgithub released this 25 Nov 03:55

Two rendering faults behind "the picture jumps" and "a smaller copy of the photo appears inside the zoomed one".

Tiles now carry the rectangle they actually cover. A crop can only land on whole pixels, so the bitmap always covers slightly more than it was asked for. Drawing it into the requested frame stretched it by 0.2–1%; at 400% that is tens of points of drift against the whole-picture plate underneath — a second, slightly larger copy of the photo, and a visible shift every time a new crop landed. Fixing the label fixes both.

The whole-picture plate is only drawn when the crop does not cover the screen. It sat under an opaque tile for free, compositing a whole extra full-screen layer every frame; and when a fast zoom-out outran the crop, the sliver that showed was the same photo magnified thirty-odd times. Now it does not enter the frame at all while the crop covers it.

Measured on a 8736x11648 JPEG: 400% drag benchmark 126.7 fps, mean lateness 11.4 ms, p95 28.1 ms, 72 tiles rendered, 32% of one core. Zoom burst p95 frame interval 17.1 ms, zero frames over 100 ms.

New development tools: work/probe/drag (real mouse drag events), PICNIDO_PAN_LOG, PICNIDO_SNAPSHOT_SERIES with PICNIDO_SNAPSHOT_FAST (30 Hz viewer snapshots off the main thread).