C++ Game Dev Throttling Main Loop