Open joedf opened 1 year ago
just add ctx.willReadFrequently = true; in ComputeProbeValue_gs() seem to produce a minor speed improvement... but maybe it's now CPU-bound? maybe a context should be passed instead of an image/canvas if possible?
ctx.willReadFrequently = true;
ComputeProbeValue_gs()
https://caniuse.com/?search=willReadFrequently
just add
ctx.willReadFrequently = true;
inComputeProbeValue_gs()
seem to produce a minor speed improvement... but maybe it's now CPU-bound? maybe a context should be passed instead of an image/canvas if possible?https://caniuse.com/?search=willReadFrequently