From: Chris Duncan Date: Thu, 9 Jan 2025 23:26:10 +0000 (-0800) Subject: Seems like loss of this context was indeed the issue, and reinitializing seems to... X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=8766799ff5e2e681be6134f567a6279b474171b1;p=libnemo.git Seems like loss of this context was indeed the issue, and reinitializing seems to have allowed the process to continue. Trying new bundle. --- diff --git a/global.min.2.js b/global.min.js similarity index 99% rename from global.min.2.js rename to global.min.js index 6f0c1bd..9bb908c 100644 --- a/global.min.2.js +++ b/global.min.js @@ -11448,13 +11448,11 @@ var init_gpu = __esm({ }); } static reset(loss) { - console.dir(loss); - console.warn(`Device lost. Reinitializing...`); - console.dir(_NanoPowGpu); - console.dir(_NanoPowGpu.#cpuBuffer); - if (_NanoPowGpu.#cpuBuffer) _NanoPowGpu.#cpuBuffer.destroy(); - if (_NanoPowGpu.#gpuBuffer) _NanoPowGpu.#gpuBuffer.destroy(); - if (_NanoPowGpu.#uboBuffer) _NanoPowGpu.#uboBuffer.destroy(); + if (loss) console.dir(loss); + console.warn(`GPU device lost. Reinitializing...`); + _NanoPowGpu.#cpuBuffer?.destroy(); + _NanoPowGpu.#gpuBuffer?.destroy(); + _NanoPowGpu.#uboBuffer?.destroy(); _NanoPowGpu.#busy = false; _NanoPowGpu.init(); } diff --git a/index.html b/index.html index 9d5b69e..c9d4dbe 100644 --- a/index.html +++ b/index.html @@ -3,7 +3,7 @@ + src="https://zoso.dev/?p=libnemo.git;a=blob_plain;f=global.min.js;hb=refs/heads/ios">