From ba44ce76b0b7f6b08d5f4173a0e65d044b1edfe1 Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Tue, 22 Apr 2025 11:48:52 -0700 Subject: [PATCH] Reduce waiting period on work calls. --- src/lib/gpu/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/gpu/index.ts b/src/lib/gpu/index.ts index 5ca266e..fc7c20a 100644 --- a/src/lib/gpu/index.ts +++ b/src/lib/gpu/index.ts @@ -234,7 +234,7 @@ export class NanoPowGpu { setTimeout(async (): Promise => { const result = this.work_generate(hash, options) resolve(result) - }, 500) + }, 100) }) } if (this.#isInitialized === false) this.init() @@ -313,7 +313,7 @@ export class NanoPowGpu { setTimeout(async (): Promise => { const result = this.work_validate(work, hash, options) resolve(result) - }, 500) + }, 100) }) } if (this.#isInitialized === false) this.init() -- 2.34.1