Cool project and great write up!
I’ve literally gone through a very similar process just a couple of days ago!
I used a threshold screen with random element added, which worked really well (and isn’t toooo slow).
The Softek FP Compiler might help with performance, although failed to compile for me as it doesn’t support DEF FN.
Mine: https://github.com/deanthecoder/ZXSpeculator/tree/main#exper...