Double the maximum texture memory.
This commit is contained in:
@@ -50,9 +50,9 @@ U32 wpo2(U32 i);
|
||||
|
||||
U32 LLImageGL::sUniqueCount = 0;
|
||||
U32 LLImageGL::sBindCount = 0;
|
||||
S32Bytes LLImageGL::sGlobalTextureMemory(0);
|
||||
S32Bytes LLImageGL::sBoundTextureMemory(0);
|
||||
S32Bytes LLImageGL::sCurBoundTextureMemory(0);
|
||||
S64Bytes LLImageGL::sGlobalTextureMemory(0);
|
||||
S64Bytes LLImageGL::sBoundTextureMemory(0);
|
||||
S64Bytes LLImageGL::sCurBoundTextureMemory(0);
|
||||
S32 LLImageGL::sCount = 0;
|
||||
|
||||
BOOL LLImageGL::sGlobalUseAnisotropic = FALSE;
|
||||
@@ -78,9 +78,9 @@ S32 LLImageGL::sCurTexPickSize = -1 ;
|
||||
LLPointer<LLImageGL> LLImageGL::sHighlightTexturep = NULL;
|
||||
S32 LLImageGL::sMaxCategories = 1 ;
|
||||
|
||||
std::vector<S32Bytes> LLImageGL::sTextureMemByCategory;
|
||||
std::vector<S32Bytes> LLImageGL::sTextureMemByCategoryBound ;
|
||||
std::vector<S32Bytes> LLImageGL::sTextureCurMemByCategoryBound ;
|
||||
std::vector<S64Bytes> LLImageGL::sTextureMemByCategory;
|
||||
std::vector<S64Bytes> LLImageGL::sTextureMemByCategoryBound ;
|
||||
std::vector<S64Bytes> LLImageGL::sTextureCurMemByCategoryBound ;
|
||||
//------------------------
|
||||
// ****************************************************************************************************
|
||||
//End for texture auditing use only
|
||||
@@ -293,7 +293,7 @@ void LLImageGL::updateStats(F32 current_time)
|
||||
LL_RECORD_BLOCK_TIME(FTM_IMAGE_UPDATE_STATS);
|
||||
sLastFrameTime = current_time;
|
||||
sBoundTextureMemory = sCurBoundTextureMemory;
|
||||
sCurBoundTextureMemory = S32Bytes(0);
|
||||
sCurBoundTextureMemory = S64Bytes(0);
|
||||
|
||||
if(gAuditTexture)
|
||||
{
|
||||
@@ -305,7 +305,7 @@ void LLImageGL::updateStats(F32 current_time)
|
||||
for(U32 i = 0 ; i < sTextureCurMemByCategoryBound.size() ; i++)
|
||||
{
|
||||
sTextureMemByCategoryBound[i] = sTextureCurMemByCategoryBound[i] ;
|
||||
sTextureCurMemByCategoryBound[i] = (S32Bytes)0 ;
|
||||
sTextureCurMemByCategoryBound[i] = (S64Bytes)0 ;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -233,9 +233,9 @@ public:
|
||||
static F32 sLastFrameTime;
|
||||
|
||||
// Global memory statistics
|
||||
static S32Bytes sGlobalTextureMemory; // Tracks main memory texmem
|
||||
static S32Bytes sBoundTextureMemory; // Tracks bound texmem for last completed frame
|
||||
static S32Bytes sCurBoundTextureMemory; // Tracks bound texmem for current frame
|
||||
static S64Bytes sGlobalTextureMemory; // Tracks main memory texmem
|
||||
static S64Bytes sBoundTextureMemory; // Tracks bound texmem for last completed frame
|
||||
static S64Bytes sCurBoundTextureMemory; // Tracks bound texmem for current frame
|
||||
static U32 sBindCount; // Tracks number of texture binds for current frame
|
||||
static U32 sUniqueCount; // Tracks number of unique texture binds for current frame
|
||||
static BOOL sGlobalUseAnisotropic;
|
||||
@@ -288,9 +288,9 @@ public:
|
||||
//for debug use: show texture category distribution
|
||||
//----------------------------------------
|
||||
|
||||
static std::vector<S32Bytes> sTextureMemByCategory;
|
||||
static std::vector<S32Bytes> sTextureMemByCategoryBound ;
|
||||
static std::vector<S32Bytes> sTextureCurMemByCategoryBound ;
|
||||
static std::vector<S64Bytes> sTextureMemByCategory;
|
||||
static std::vector<S64Bytes> sTextureMemByCategoryBound ;
|
||||
static std::vector<S64Bytes> sTextureCurMemByCategoryBound ;
|
||||
//----------------------------------------
|
||||
// ****************************************************************************************************
|
||||
//End of definitions for texture auditing use only
|
||||
|
||||
Reference in New Issue
Block a user