]> zoso.dev Git - nano-pow.git/commitdiff
Increase dispatch to 1024x1024 to optimize balance between dispatch size and overhead...
authorChris Duncan <chris@zoso.dev>
Mon, 13 Jan 2025 19:56:09 +0000 (11:56 -0800)
committerChris Duncan <chris@zoso.dev>
Mon, 13 Jan 2025 19:56:09 +0000 (11:56 -0800)
src/classes/gpu.ts

index addc51d0da54e38a94a86a1b195cd987e75b41ca..6d497ff001b45ef2498cf00ba9a6079ab07ab7c7 100644 (file)
@@ -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)