修复线程高占用的bug

This commit is contained in:
Nomango 2017-10-10 01:24:55 +08:00
parent bc88158d19
commit c62b81dad8
1 changed files with 2 additions and 2 deletions

View File

@ -78,12 +78,12 @@ int App::run()
else else
{ {
// 计算挂起时长 // 计算挂起时长
/*nWaitMS = nAnimationInterval * 2 - nInterval; nWaitMS = nAnimationInterval - nInterval - 1;
// 挂起线程,释放 CPU 占用 // 挂起线程,释放 CPU 占用
if (nWaitMS > 1LL) if (nWaitMS > 1LL)
{ {
std::this_thread::sleep_for(milliseconds(nWaitMS)); std::this_thread::sleep_for(milliseconds(nWaitMS));
}*/ }
} }
} }
// 停止批量绘图 // 停止批量绘图