mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-29 12:17:14 -06:00
The two nested_instances_..._culled_in_bounded_time tests in the renderer's tests checked that a frame with 2^30 differently placed symbol instances finishes within 30 s of wall-clock time. On a loaded machine the frame took longer than that, and both tests failed. The time bound also passed when the frame did far more work than it should: with the 4,096 limit on measured placements raised to 65,536, the frame measured symbol art 131,118 times and finished in under 2 s. SymbolBoxes now counts how many times measure_art runs a measure on symbol art (art_measured), and FrameStats::symbol_art holds the count for the frame's symbol boxes. The tests assert that the frame measures symbol art at most 20,000 times. It measures it 8,234 times, and 4,160 times when each instance has a Transform effect of its own. The wait for the frame is 300 s, as a guard against a frame that never ends. A new test in vectorcraft-doc checks that each symbol's art box is measured once however many instances of it are measured.