Don't spin hot in MessagePumpGLFW (#2636)
When there are no pending timers, we should sit in glfwWaitEvents instead of continuously calling glfwPollEvents. This reduces CPU utilization significantly.
Showing
想要评论请 注册 或 登录
从无法访问的项目Fork
When there are no pending timers, we should sit in glfwWaitEvents instead of continuously calling glfwPollEvents. This reduces CPU utilization significantly.