From c62b81dad8b645266ba12cf93459fa6b44ff158d Mon Sep 17 00:00:00 2001 From: Nomango <569629550@qq.com> Date: Tue, 10 Oct 2017 01:24:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=BA=BF=E7=A8=8B=E9=AB=98?= =?UTF-8?q?=E5=8D=A0=E7=94=A8=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Easy2D/Base/App.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Easy2D/Base/App.cpp b/Easy2D/Base/App.cpp index d7ae36f4..3d01b642 100644 --- a/Easy2D/Base/App.cpp +++ b/Easy2D/Base/App.cpp @@ -78,12 +78,12 @@ int App::run() else { // 计算挂起时长 - /*nWaitMS = nAnimationInterval * 2 - nInterval; + nWaitMS = nAnimationInterval - nInterval - 1; // 挂起线程,释放 CPU 占用 if (nWaitMS > 1LL) { std::this_thread::sleep_for(milliseconds(nWaitMS)); - }*/ + } } } // 停止批量绘图