FPS limiter added for the encoder