]> zoso.dev Git - libnemo.git/commitdiff
Log buffer to troubleshoot iOS device loss.
authorChris Duncan <chris@zoso.dev>
Thu, 9 Jan 2025 23:11:54 +0000 (15:11 -0800)
committerChris Duncan <chris@zoso.dev>
Thu, 9 Jan 2025 23:11:54 +0000 (15:11 -0800)
global.min.1.js [moved from global.min.0.js with 99% similarity]
index.html
src/lib/nano-pow/classes/gpu.ts

similarity index 99%
rename from global.min.0.js
rename to global.min.1.js
index b136d6d0499a259351827ef3c0283c40c4b68dff..0fcaafff3903d5d5b8e3019713248a48fc9a37d5 100644 (file)
@@ -11450,6 +11450,8 @@ var init_gpu = __esm({
       static reset(loss) {
         console.dir(loss);
         console.warn(`Device lost. Reinitializing...`);
+        console.dir(this);
+        console.dir(this.#cpuBuffer);
         if (this.#cpuBuffer) this.#cpuBuffer.destroy();
         if (this.#gpuBuffer) this.#gpuBuffer.destroy();
         if (this.#uboBuffer) this.#uboBuffer.destroy();
index 820a11b4c95bb28e5980c69138768f8ba247b68a..311288cc74a10e6253268997ac071a12ab8f50b4 100644 (file)
@@ -3,7 +3,7 @@
 <head>
        <link rel="icon" href="./favicon.ico">
        <script type="module"
-               src="https://zoso.dev/?p=libnemo.git;a=blob_plain;f=global.min.0.js;hb=refs/heads/ios"></script>
+               src="https://zoso.dev/?p=libnemo.git;a=blob_plain;f=global.min.1.js;hb=refs/heads/ios"></script>
        <!-- <script type="module" src="https://cdn.jsdelivr.net/npm/nano-webgl-pow@1.1.1/nano-webgl-pow.js"></script> -->
        <script type="module">
                (async () => {
index 71f14d07211d6b7b536022a9e3a7ea1452402f8c..abb458d17b5fdfd8d2d09602113fc9e972137c13 100644 (file)
@@ -96,6 +96,8 @@ export class NanoPowGpu {
        static reset (loss?: GPUDeviceLostInfo): void {
                console.dir(loss)
                console.warn(`Device lost. Reinitializing...`)
+               console.dir(this)
+               console.dir(this.#cpuBuffer)
                if (this.#cpuBuffer) this.#cpuBuffer.destroy()
                if (this.#gpuBuffer) this.#gpuBuffer.destroy()
                if (this.#uboBuffer) this.#uboBuffer.destroy()