Merge
commit
a65e3385f1
|
|
@ -91,6 +91,7 @@ std::ostream& operator<<(std::ostream& out, const kdu_dims& dims)
|
|||
"[" << dims.size.x << "x" << dims.size.y << "]";
|
||||
}
|
||||
|
||||
|
||||
class kdc_flow_control {
|
||||
|
||||
public:
|
||||
|
|
|
|||
|
|
@ -1490,11 +1490,9 @@ bool LLAppViewer::frame()
|
|||
ms_sleep(500);
|
||||
}
|
||||
|
||||
const F64Milliseconds max_idle_time = llmin(.005f*10.f*(F32Milliseconds)gFrameTimeSeconds, F32Milliseconds(5)); // 5 ms a second
|
||||
idleTimer.reset();
|
||||
S32 total_work_pending = 0;
|
||||
S32 total_io_pending = 0;
|
||||
while(1)
|
||||
{
|
||||
S32 work_pending = 0;
|
||||
S32 io_pending = 0;
|
||||
|
|
@ -1518,11 +1516,7 @@ bool LLAppViewer::frame()
|
|||
|
||||
total_work_pending += work_pending ;
|
||||
total_io_pending += io_pending ;
|
||||
|
||||
if (!work_pending || idleTimer.getElapsedTimeF64() >= max_idle_time)
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
gMeshRepo.update() ;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue