https://github.com/timonoko/Jogwheel
reply
Those signals are just weird mess of coils, switches and resistors.
ESP32 clock speed may also be a contributing factor.
But did not improve much, except variable names are now less esoteric.
https://github.com/timonoko/Jogwheel