Erratic motor work, what is max encoder impulses per rev?

I’d be glad to help you out if you can’t figgure it out with a pair of motors.