Do a second pass to clean up the code/comments and make further optimizations
The bigger your RAM, the bigger your detector, so use a desktop's RAM if you can
。夫子对此有专业解读
Framework Integrations
This algorithm attempts to minimise numerically. Because of this, the quality of the dither produced by Knoll’s algorithm is much higher than any other of the N-candidate methods we have covered so far. It is also the slowest however, as it requires a greater per-pixel to be really effective. More details are given in Knoll’s now expired patent[3]. I have put together a GPU implementation of Knoll’s algorithm on Shadertoy here.