- renderer: release_transfer_images() deletes the transfer framebuffer instead of only zeroing the name; the leak exhausted VRAM and killed the GPU process under Vulkan after ~3-7 minutes - canvas: status notices are absolute overlays, so they no longer resize the native surface (each show/hide freed and recreated region draw buffers and eventually froze the main regions) - compute: bounded shader/layout/pipeline caches, staging pool, device-lost error propagation, dev-only ?glStats / ?computeFault / ?compute hooks - headed tools: soak/probe/smoke assets and docs - evidence: 20-minute Vulkan soak STABLE (GPU-SOAK-20261205-161007), SwiftShader control STABLE (GPU-SOAK-20261205-162105), Clip 28/28 NOT_CLAIMED (CLIP-HEADED-20261205-162214) Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
17 lines
558 B
JavaScript
17 lines
558 B
JavaScript
/**
|
|
* Canvas liveness from screenshots: a run counts as alive when consecutive
|
|
* captures keep differing. PNG bytes are hashed directly; no image decoder is
|
|
* needed (tools/web/lib/image-stats.mjs covers pixel verdicts when a tool needs
|
|
* them).
|
|
*/
|
|
export function bufferHash(buffer) {
|
|
if (!buffer) return null;
|
|
let hash = 7;
|
|
for (let index = 0; index < buffer.length; index += 1) hash = (hash * 31 + buffer[index]) >>> 0;
|
|
return hash;
|
|
}
|
|
|
|
export async function snapshot(page) {
|
|
try { return await page.screenshot(); } catch { return null; }
|
|
}
|