help with encoder not working on high speed

Where did you get the Encoder library from? I can't tell what is going on without seeing the code for it.

Please use code tags when posting code.