M13.30: web depth and polish
- GPU in browser job workers: each job worker opens its own WebGPU device (deferred readbacks); the Render Queue export and the analyses' frame loops are futures (render::passes, offload::run_request_async) whose frames render in passes, awaiting the device between them. GPU particles and Advanced 3D read back under keys too. workers.jobs reports passes and readbacks; the smoke test measures them. - Layer buffers in the browser's OPFS disk cache: frame workers back their layer caches with a PrefetchStore; the page plans what to fetch before a request from recent misses (LayerPrefetch over the shared DiskIndex). - Templates embed footage (default on, size-capped with a warning) and creating from a template extracts it next to the new project / into browser storage. - ICC LUT profiles (lut8/lut16/lutAtoB/lutBtoA, from the public ICC spec) in Simulate Output > My Custom RGB, baked into a 3D LUT for the viewer. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
d39c0e818c
commit
f3715aac32
@@ -1,7 +1,8 @@
|
||||
// An EffectCraft engine instance in a Web Worker (src/worker.rs, src/frames.rs,
|
||||
// crates/engine/src/offload.rs and remote.rs). The page sends the compiled module, then:
|
||||
// - job workers: footage files and jobs (Render Queue, analyses, Roto Brush); the worker replies
|
||||
// with JSON messages and rendered files;
|
||||
// with JSON messages and rendered files. With `gpu: true` it opens its own WebGPU device and
|
||||
// the job's frames render on it in passes (the job awaits the device's readbacks);
|
||||
// - frame workers (`frames: true`): footage files and frame messages (project syncs as diffs,
|
||||
// render requests, Roto Brush segmentations); the worker replies with frames (pixels
|
||||
// transferred). With `gpu: true` it opens its own WebGPU device and renders GPU effects on
|
||||
@@ -15,7 +16,7 @@ let queue = Promise.resolve();
|
||||
|
||||
async function handle(m) {
|
||||
if (m.type === "file") ec.workerFile(m.path, m.bytes);
|
||||
else if (m.type === "job") ec.workerJob(m.json);
|
||||
else if (m.type === "job") await ec.workerJob(m.json);
|
||||
else if (m.type === "frame") await ec.workerFrame(m.json);
|
||||
}
|
||||
|
||||
@@ -26,6 +27,7 @@ self.onmessage = (e) => {
|
||||
await init({ module_or_path: m.module ?? new URL("effectcraft_web_bg.wasm", m.base) });
|
||||
ec.workerInit();
|
||||
if (m.frames) await ec.workerFrameInit(!!m.gpu);
|
||||
else await ec.workerJobInit(!!m.gpu);
|
||||
self.postMessage({ type: "ready" });
|
||||
})();
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user