From 763ef5370b924aafa7417c50f538775d9ff65f1b Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Thu, 2 Jan 2025 13:49:59 -0800 Subject: [PATCH] Only try to load GPU every tenth of a second. --- src/lib/workers/powgpu.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/workers/powgpu.ts b/src/lib/workers/powgpu.ts index 8b45215..6510615 100644 --- a/src/lib/workers/powgpu.ts +++ b/src/lib/workers/powgpu.ts @@ -291,7 +291,7 @@ export class PowGpu extends WorkerInterface { // Ensure WebGPU is initialized else restart calculation if (PowGpu.#device == null) { - setTimeout(async () => { await this.#calculate(hashHex, callback, threshold) }) + setTimeout(async () => { await this.#calculate(hashHex, callback, threshold) }, 100) return } -- 2.34.1