Merge branch 'V2Mesh' of https://github.com/Shyotl/SingularityViewer into future
This commit is contained in:
@@ -39,6 +39,9 @@
|
||||
|
||||
#include "llagent.h"
|
||||
#include "llagentcamera.h"
|
||||
#if MESH_ENABLED
|
||||
#include "llmeshrepository.h"
|
||||
#endif //MESH_ENABLED
|
||||
#include "llpanellogin.h"
|
||||
#include "llviewerkeyboard.h"
|
||||
#include "llviewerwindow.h"
|
||||
@@ -330,6 +333,13 @@ public:
|
||||
addText(xpos, ypos, llformat("Time: %d:%02d:%02d", hours,mins,secs)); ypos += y_inc;
|
||||
}
|
||||
|
||||
#if LL_WINDOWS
|
||||
if (gSavedSettings.getBOOL("DebugShowMemory"))
|
||||
{
|
||||
addText(xpos, ypos, llformat("Memory: %d (KB)", LLMemory::getWorkingSetSize() / 1024));
|
||||
ypos += y_inc;
|
||||
}
|
||||
#endif
|
||||
if (gDisplayCameraPos)
|
||||
{
|
||||
std::string camera_view_text;
|
||||
@@ -421,6 +431,29 @@ public:
|
||||
addText(xpos, ypos, "Shaders Disabled");
|
||||
ypos += y_inc;
|
||||
}
|
||||
|
||||
if (gGLManager.mHasATIMemInfo)
|
||||
{
|
||||
S32 meminfo[4];
|
||||
glGetIntegerv(GL_TEXTURE_FREE_MEMORY_ATI, meminfo);
|
||||
|
||||
addText(xpos, ypos, llformat("%.2f MB Texture Memory Free", meminfo[0]/1024.f));
|
||||
ypos += y_inc;
|
||||
|
||||
if (gGLManager.mHasVertexBufferObject)
|
||||
{
|
||||
glGetIntegerv(GL_VBO_FREE_MEMORY_ATI, meminfo);
|
||||
addText(xpos, ypos, llformat("%.2f MB VBO Memory Free", meminfo[0]/1024.f));
|
||||
ypos += y_inc;
|
||||
}
|
||||
}
|
||||
else if (gGLManager.mHasNVXMemInfo)
|
||||
{
|
||||
S32 free_memory;
|
||||
glGetIntegerv(GL_GPU_MEMORY_INFO_CURRENT_AVAILABLE_VIDMEM_NVX, &free_memory);
|
||||
addText(xpos, ypos, llformat("%.2f MB Video Memory Free", free_memory/1024.f));
|
||||
ypos += y_inc;
|
||||
}
|
||||
addText(xpos, ypos, llformat("%d MB Vertex Data", LLVertexBuffer::sAllocatedBytes/(1024*1024)));
|
||||
ypos += y_inc;
|
||||
|
||||
@@ -469,6 +502,12 @@ public:
|
||||
|
||||
ypos += y_inc;
|
||||
|
||||
if (!LLSpatialGroup::sPendingQueries.empty())
|
||||
{
|
||||
addText(xpos,ypos, llformat("%d Queries pending", LLSpatialGroup::sPendingQueries.size()));
|
||||
ypos += y_inc;
|
||||
}
|
||||
|
||||
|
||||
addText(xpos,ypos, llformat("%d Avatars visible", LLVOAvatar::sNumVisibleAvatars));
|
||||
|
||||
@@ -478,6 +517,24 @@ public:
|
||||
|
||||
ypos += y_inc;
|
||||
|
||||
#if MESH_ENABLED
|
||||
if (gSavedSettings.getBOOL("MeshEnabled"))
|
||||
{
|
||||
addText(xpos, ypos, llformat("%.3f MB Mesh Data Received", LLMeshRepository::sBytesReceived/(1024.f*1024.f)));
|
||||
|
||||
ypos += y_inc;
|
||||
|
||||
addText(xpos, ypos, llformat("%d/%d Mesh HTTP Requests/Retries", LLMeshRepository::sHTTPRequestCount,
|
||||
LLMeshRepository::sHTTPRetryCount));
|
||||
|
||||
ypos += y_inc;
|
||||
|
||||
addText(xpos, ypos, llformat("%.3f/%.3f MB Mesh Cache Read/Write ", LLMeshRepository::sCacheBytesRead/(1024.f*1024.f), LLMeshRepository::sCacheBytesWritten/(1024.f*1024.f)));
|
||||
|
||||
ypos += y_inc;
|
||||
}
|
||||
#endif //MESH_ENABLED
|
||||
|
||||
LLVertexBuffer::sBindCount = LLImageGL::sBindCount =
|
||||
LLVertexBuffer::sSetCount = LLImageGL::sUniqueCount =
|
||||
gPipeline.mNumVisibleNodes = LLPipeline::sVisibleLightCount = 0;
|
||||
|
||||
Reference in New Issue
Block a user