]> zoso.dev Git - nano-pow.git/commitdiff
Remove testing logs.
authorChris Duncan <chris@zoso.dev>
Mon, 20 Jan 2025 18:50:41 +0000 (10:50 -0800)
committerChris Duncan <chris@zoso.dev>
Mon, 20 Jan 2025 18:50:41 +0000 (10:50 -0800)
src/classes/gpu.ts

index e038f5130492c236cfa43850fbd5e3265e6127cc..36937bb445062b892270e6f403b6c264c4ade946 100644 (file)
@@ -182,11 +182,8 @@ export class NanoPowGpu {
 
                // Read results back to Javascript and then unmap buffer after reading
                let data = null
-               let start
                try {
-                       start = performance.now()
                        await this.#cpuBuffer.mapAsync(GPUMapMode.READ)
-                       console.log(performance.now() - start)
                        await this.#device.queue.onSubmittedWorkDone()
                        data = new DataView(this.#cpuBuffer.getMappedRange().slice(0))
                        this.#cpuBuffer.unmap()