joedf / ImgBeamer

SEM image formation process demo tool
https://joedf.github.io/ImgBeamer
MIT License
2 stars 0 forks source link

Performance: investigate ctx.willReadFrequently, offscreenCanvas, worker #21

Open joedf opened 1 year ago

joedf commented 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?

https://caniuse.com/?search=willReadFrequently

joedf commented 1 year ago