What you may have to do is set a queue structure where information gets added to the queue every 1ms. Then write your code so that it is constantly striving to clear the queue. That may not help at all as it will still be slow, but it might.