made a fix for the encoder thread for CPUs that can't handle the load