* packaging: use [[ for bash tests (SonarCloud S7688)
Behaviour-preserving: `[[ ]]` in place of `[ ]` for bash tests (SonarCloud shell:S7688). Every script has a bash shebang; no test uses `-a`/`-o`, escaped parentheses or an unquoted pattern on the right of `=`. `bash -n` passes on each script; the rest is left to CI.
Clears all 70 open issues: `packaging/{linux,macos,freebsd,web}/*.sh`.
* packaging/web: parse the wasm size override as base 10 under [[
Inside [[ ]], -gt evaluates its operands arithmetically: a leading zero reads as octal and other text as an expression. Read the override as a base-10 number, as photocraft does.
* FreeBSD CI: run the GPU crates' tests one at a time
The FreeBSD VM's software Vulkan driver crashes (SIGSEGV) when several tests create a wgpu device at once. texturecraft-render's lib and headless tests, and earlier texturecraft-automation's, died this way in every FreeBSD run since Nov 6, with no render or dependency change. photocraft already serializes its GPU tests for the same reason; do the same for the crates that open a device.
* FreeBSD CI: test the whole workspace one test at a time
Excluding the GPU crates from the parallel run changed feature unification, and winit then built without its X11/Wayland backends (compile_error on FreeBSD). Run the whole workspace in one cargo test with --test-threads=1 instead.
Applying a material filled the model in tile by tile, and each apply made the
next one slower. Now:
- a big recomposite first draws a coarse look of every tile (sampled texels
repeated across blocks), then refines to the exact result;
- layers hidden behind an opaque layer are skipped (not when anchors or height
masks are involved);
- compositing and upload budgets adapt: larger when idle, smaller while the
user is interacting, and uploads reserve time for conversion;
- no coarse pass during a live stroke or with neighbourhood filters;
- blending at full weight returns the blended value exactly.
Tests: coarse-then-exact, hidden-layer culling gives identical pixels, coarse
pass covers every tile, no coarse pass while a stroke is live.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Orbiting in Rendering mode flashed a "Starting render" placeholder, got grainy
and stuttered once the GPU was busy. Now:
- the path tracer works at half size while the camera moves and keeps the last
picture on screen until the full-size one has a few samples (no placeholder);
- previous-size accumulation buffers are kept, so switching size does not
reallocate;
- the samples-per-frame controller uses a frame-time floor (1/75..1/30 s), cuts
only when a frame takes 1.75x the floor and regrows after 6 frames;
- texture loading counts as motion and texture take-in is throttled, so the
scene is not rebuilt every frame while materials load;
- environment lookups are cached.
Tests cover the controller, the held picture, size switching and the
quick-frames case.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>