Wrap sGlobalRawMemory in AIThreadSafe.
This is accessed by different threads. Other globals like it might also be accessed by different threads, this has to be investigated.
This commit is contained in:
committed by
Siana Gearz
parent
a43f1ee299
commit
3bde58d970
@@ -608,11 +608,15 @@ void LLViewerTextureList::updateImages(F32 max_time)
|
||||
{
|
||||
LLAppViewer::getTextureFetch()->setTextureBandwidth(LLViewerStats::getInstance()->mTextureKBitStat.getMeanPerSec());
|
||||
|
||||
S32 global_raw_memory;
|
||||
{
|
||||
global_raw_memory = *AIAccess<S32>(LLImageRaw::sGlobalRawMemory);
|
||||
}
|
||||
sNumImagesStat.addValue(sNumImages);
|
||||
sNumRawImagesStat.addValue(LLImageRaw::sRawImageCount);
|
||||
sGLTexMemStat.addValue((F32)BYTES_TO_MEGA_BYTES(LLImageGL::sGlobalTextureMemoryInBytes));
|
||||
sGLBoundMemStat.addValue((F32)BYTES_TO_MEGA_BYTES(LLImageGL::sBoundTextureMemoryInBytes));
|
||||
sRawMemStat.addValue((F32)BYTES_TO_MEGA_BYTES(LLImageRaw::sGlobalRawMemory));
|
||||
sRawMemStat.addValue((F32)BYTES_TO_MEGA_BYTES(global_raw_memory));
|
||||
sFormattedMemStat.addValue((F32)BYTES_TO_MEGA_BYTES(LLImageFormatted::sGlobalFormattedMemory));
|
||||
|
||||
updateImagesDecodePriorities();
|
||||
|
||||
Reference in New Issue
Block a user