llcommon merge. Added LLUnits.
This commit is contained in:
@@ -5169,9 +5169,9 @@ std::string LLVOAvatar::bakedTextureOriginInfo()
|
||||
return result;
|
||||
}
|
||||
|
||||
S32 LLVOAvatar::totalTextureMemForUUIDS(std::set<LLUUID>& ids)
|
||||
S32Bytes LLVOAvatar::totalTextureMemForUUIDS(std::set<LLUUID>& ids)
|
||||
{
|
||||
S32 result = 0;
|
||||
S32Bytes result(0);
|
||||
for (std::set<LLUUID>::const_iterator it = ids.begin(); it != ids.end(); ++it)
|
||||
{
|
||||
LLViewerFetchedTexture *imagep = gTextureList.findImage(*it);
|
||||
@@ -5236,12 +5236,12 @@ void LLVOAvatar::collectTextureUUIDs(std::set<LLUUID>& ids)
|
||||
|
||||
void LLVOAvatar::releaseOldTextures()
|
||||
{
|
||||
S32 current_texture_mem = 0;
|
||||
S32Bytes current_texture_mem;
|
||||
|
||||
// Any textures that we used to be using but are no longer using should no longer be flagged as "NO_DELETE"
|
||||
std::set<LLUUID> baked_texture_ids;
|
||||
collectBakedTextureUUIDs(baked_texture_ids);
|
||||
S32 new_baked_mem = totalTextureMemForUUIDS(baked_texture_ids);
|
||||
S32Bytes new_baked_mem = totalTextureMemForUUIDS(baked_texture_ids);
|
||||
|
||||
std::set<LLUUID> local_texture_ids;
|
||||
collectLocalTextureUUIDs(local_texture_ids);
|
||||
@@ -5250,7 +5250,7 @@ void LLVOAvatar::releaseOldTextures()
|
||||
std::set<LLUUID> new_texture_ids;
|
||||
new_texture_ids.insert(baked_texture_ids.begin(),baked_texture_ids.end());
|
||||
new_texture_ids.insert(local_texture_ids.begin(),local_texture_ids.end());
|
||||
S32 new_total_mem = totalTextureMemForUUIDS(new_texture_ids);
|
||||
S32Bytes new_total_mem = totalTextureMemForUUIDS(new_texture_ids);
|
||||
|
||||
//S32 old_total_mem = totalTextureMemForUUIDS(mTextureIDs);
|
||||
//LL_DEBUGS("Avatar") << getFullname() << " old_total_mem: " << old_total_mem << " new_total_mem (L/B): " << new_total_mem << " (" << new_local_mem <<", " << new_baked_mem << ")" << LL_ENDL;
|
||||
|
||||
Reference in New Issue
Block a user