Missing pulses in fast speeds although using interrupts

PaulS I will add photos and codes in a few day.

Michinyon, I try that you say, but as I said, if I able to write volatile unsigned int it is not enough also there is a problem that I couldn't compare two channel with rotary encoder libraries cides