Fixed the huge CPU usage on Windows by limiting drawing to be done 60 times a second at most.