From f5a037fb85859b28e859857e18bb99c175d53e5d Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Mon, 13 Jan 2025 11:56:09 -0800 Subject: [PATCH] Increase dispatch to 1024x1024 to optimize balance between dispatch size and overhead since this is about the smallest size where it hits a nonce on the first pass the majority of the time. --- src/classes/gpu.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/classes/gpu.ts b/src/classes/gpu.ts index addc51d..6d497ff 100644 --- a/src/classes/gpu.ts +++ b/src/classes/gpu.ts @@ -190,7 +190,7 @@ export class NanoPowGpu { do { const random = Math.floor(Math.random() * 0xffffffff) const seed = (BigInt(random) << 32n) | BigInt(random) - const data = await this.#dispatch(seed, hash, threshold, 0xff) + const data = await this.#dispatch(seed, hash, threshold, 0x400) nonce = data.getBigUint64(0, true) this.#busy = !data.getUint32(8) } while (this.#busy) -- 2.47.3