MAINT-7082: Remove waiting loop in frame when textures queued for download in alternate thread. With debug spam for observation.

meow-7.2.2
Rider Linden 2017-01-25 15:58:38 -08:00
parent 25cd2ed205
commit 56f9cce8a1
1 changed files with 10 additions and 6 deletions

View File

@ -1491,7 +1491,7 @@ bool LLAppViewer::frame()
idleTimer.reset();
S32 total_work_pending = 0;
S32 total_io_pending = 0;
while(1)
//while(1)
{
S32 work_pending = 0;
S32 io_pending = 0;
@ -1515,11 +1515,15 @@ bool LLAppViewer::frame()
total_work_pending += work_pending ;
total_io_pending += io_pending ;
if (!work_pending || idleTimer.getElapsedTimeF64() >= max_idle_time)
{
break;
}
if (work_pending)
{
LL_WARNS("Idle") << "Work pending in texture thread: " << work_pending << LL_ENDL;
}
// if (!work_pending || idleTimer.getElapsedTimeF64() >= max_idle_time)
// {
// break;
// }
}
gMeshRepo.update() ;