? this.#cores
: options.effort
this.#debug = !!(options?.debug)
+ if (this.#debug) console.log('search options', JSON.stringify(options))
/** Reset if user specified new level of effort */
if (this.#WORKLOAD !== 256 * effort) {
? 0xfffffff8
: options.threshold
this.#debug = !!(options?.debug)
+ if (this.#debug) console.log('validate options', JSON.stringify(options))
if (NanoPowGl.#gl == null) throw new Error('WebGL 2 is required')
if (this.#gl == null) throw new Error('WebGL 2 is required')
? 0x800
: options.effort * 0x100
this.#debug = !!(options?.debug)
+ if (this.#debug) console.log('search options', JSON.stringify(options))
// Ensure WebGPU is initialized before calculating
let loads = 0
})
}
this.#busy = true
- this.#debug = !!(options?.debug)
const threshold = (typeof options?.threshold !== 'number' || options.threshold < 0x0 || options.threshold > 0xffffffff)
? 0xfffffff8
: options.threshold
+ this.#debug = !!(options?.debug)
+ if (this.#debug) console.log('validate options', JSON.stringify(options))
// Ensure WebGPU is initialized before calculating
let loads = 0