mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-01 18:54:31 +01:00
The two Extrude & Bevel tests of the faces an object's solids keep together built members and strokes from 16,384-corner polygons until they passed MAX_OBJECT_FACES. They took 230 s and 23.5 s on CI. The solids code now reads the limit through object_face_limit(), which tests can lower on their own thread (OBJECT_FACE_LIMIT), and both tests build 64-corner polygons against a limit of exactly three members' or three strokes' faces. The limit is now met exactly, so the tests also check that a solid at the limit still draws. Outside the crate's own tests, object_face_limit() is MAX_OBJECT_FACES. The smoothing test of every pair of gray levels ran the filter on 262,144 one-pixel-pair images, and each pass along a column started two threads. It now puts every pair in one 2-pixel-wide image and one 2-pixel-high image, so it checks the same 65,536 pairs in four passes.