mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-24 09:46:59 -06:00
The FreeBSD job fails fx::tests::a_drag_renders_raster_effects_within_the_drag_budget at fx.rs:2822 with 1 previewed instead of 2. pixels_do_not_depend_on_the_thread_count called set_default_threads with 0, 1, 4 and 8. The override is process-wide, so a Renderer::new() in a test running at the same time took that count. With 0 threads a drag renders the drop shadow at full resolution, as RenderOptions::dragging documents, so stats.previewed counts only the filtered content (1 instead of 2). The thread-count test now sets each renderer's threads. The drag test gives its renderers 3 threads, so it also passes where default_threads() is 0 (one CPU, or VECTORCRAFT_RENDER_THREADS=0).