You wont need any sleep if you would hook a rendering function (like EndScene, Present, rendering functions from CA like BeginDrawPrimBlock) and call all your stuff there.