修复线程高占用的bug
This commit is contained in:
parent
bc88158d19
commit
c62b81dad8
|
|
@ -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));
|
||||
}*/
|
||||
}
|
||||
}
|
||||
}
|
||||
// 停止批量绘图
|
||||
|
|
|
|||
Loading…
Reference in New Issue