From: Chris Duncan Date: Mon, 13 Jan 2025 19:56:09 +0000 (-0800) Subject: Increase dispatch to 1024x1024 to optimize balance between dispatch size and overhead... X-Git-Tag: v1.2.4~2 X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=f5a037fb85859b28e859857e18bb99c175d53e5d;p=nano-pow.git 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. --- 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)