PulseCanvas / app / docs / projectm-validation.md
ProjectM validation — 2026-10-10
The shipped library contains 7,839 ProjectM effects and 31 native visualizers. The earlier first-frame load check was insufficient: a successfully compiled preset can still produce blank, static, or severely slow output.
The playback audit classified all 9,783 previously bundled presets. It rendered 8,790 on the GPU and excluded another 993 members of a confirmed slow custom-shape family. Each ordinary check used synthetic stereo percussion and tones at 256 × 144 over two or three seconds. Severely slow effects exited after five warmup frames. Visible-area, motion, solid-white, load-error, and median-frame-time checks identified suspects; 417 individual rechecks then used up to six seconds to remove false positives from concurrent GPU load and startup. The full receipt is generated locally under .build/validation/; summary counts and thresholds are in preset-compatibility.json.
1,944 effects were removed from both the catalog and bundled resources. All 44 specifically requested names are included. The removal includes the 1,700-member high-instance custom-shape family, the 60 Core Mirror effects, and four transition-only effects. Reasons overlap those families and explicit requests; retired-presets.json records one primary reason per effect. A single-process confirmation measured representative shape-heavy effects at 261–563 ms per frame even at the small audit size. CPU samples concentrated in CustomShape drawing and OpenGL driver waits. No new global translator crash was observed.
These checks reject sustained blank, static, solid-white, and severely slow sampled output. They do not establish artistic quality or guarantee every effect at every resolution, input, and timestamp. Interactive ProjectM surfaces now use at most a 1,280-pixel longest edge, while exports retain their chosen full dimensions. Native rendering is unchanged.
The preset strip uses cached title widths, binary search, and only visible AppKit buttons. Its regression test jumps across the entire collection, keeps fewer than 20 controls resident, verifies single-line full names and accessible whole-button actions, and disables selection during export. It avoids constructing thousands of intermediate SwiftUI views when selecting a distant effect. A five-second live CPU sample of the updated app showed renderer drawing and no CreatorView or preset-strip rebuilds during steady playback; this is a CPU profile, not an FPS guarantee.
Stable IDs preserve retained favorites and Studio assignments after curation. Version-one numeric identities are supplied for older projects. Retired clips use Octagon Vault with fixed song boundaries; retired settings cannot overwrite its existing saved appearance. Missing custom packs report an error. Legacy custom-pack loading remains supported, but the public Import presets control has been removed. Save project / Open project stores and restores visual settings, timeline, and a local soundtrack reference; audio and source effect files are not embedded.
The integration checks cover unique two-word names, all 120 SF Symbols, persistent favorites, legacy custom-pack compatibility, numeric and stable-ID project migration, settings preservation, audio PCM/resampling, arbitrary window sizes, full 4K rendering surfaces, and a decoded three-section MP4 with audio. Studio checks cover Use at playhead, exact section boundaries, random selection preserving all settings, and the separate visual-style dice action.
Existing native renderer tests establish zero-Chaos music/silence equality while procedural motion continues, along with tunnel continuity. This change does not alter those native animation paths.
Reproduce targeted checks with scripts/test-projectm-integration.sh, scripts/test-studio.sh, and scripts/test-preset-strip.sh. scripts/test-preset-playback.sh performs the longer GPU playback screening; results are hardware- and load-dependent. Fixtures and session backups remain outside Git.
Live checks confirmed the preview Favorite toggle, Use at playhead assignment, an empty result for Galactic Forest, and the absence of Import presets. The fresh session restored Stormy Bloom with its exact slider values, the 3:31 soundtrack, 4K/60 output, preview volume 0.7, Loop on, and playback near its saved position. The temporary assignment used to verify the new control was discarded by reopening that backup.
Full-screen regression: source and drawable sizes are tested independently. The quadrant GPU test reproduced edge clamping in the old compositor at 3840 × 2160, then passed with destination-normalized sampling at wide 4K, portrait 4K, 2560 × 1600, and 577 × 325. Live Studio presentation fills the display with OpenGL presets; the performance cap remains 1,280 pixels on the source surface. ProjectM/Metal export integration still passes.