maybe keep the sleep but add a define for the amount to sleep?
0 by default unless on windows then 100 or 200 (10 fps or 5 fps)