add some debug code for possible gray baked avatar textures

meow-7.2.2
Xiaohong Bao 2013-11-07 15:36:45 -07:00
parent 2b8dc4d80c
commit 5fc3066bdb
1 changed files with 16 additions and 0 deletions

View File

@ -2345,6 +2345,15 @@ bool LLViewerFetchedTexture::doLoadedCallbacks()
}
if(sCurrentTime - mLastCallBackActiveTime > MAX_INACTIVE_TIME && !mIsFetching)
{
if (mFTType == FTT_SERVER_BAKE)
{
//output some debug info
llinfos << "baked texture: " << mID << "clears all call backs due to inactivity." << llendl;
llinfos << mUrl << llendl;
llinfos << "current discard: " << getDiscardLevel() << " current discard for fetch: " << getCurrentDiscardLevelForFetching() <<
" Desired discard: " << getDesiredDiscardLevel() << "decode Pri: " << getDecodePriority() << llendl;
}
clearCallbackEntryList() ; //remove all callbacks.
return false ;
}
@ -2353,6 +2362,13 @@ bool LLViewerFetchedTexture::doLoadedCallbacks()
if (isMissingAsset())
{
if (mFTType == FTT_SERVER_BAKE)
{
//output some debug info
llinfos << "baked texture: " << mID << "is missing." << llendl;
llinfos << mUrl << llendl;
}
for(callback_list_t::iterator iter = mLoadedCallbackList.begin();
iter != mLoadedCallbackList.end(); )
{