Don't try to access file on local disk in statistics. Refs #400

This commit is contained in:
baldurk
2016-10-19 19:12:41 +02:00
parent d1e5149527
commit 459619ff0c
11 changed files with 44 additions and 16 deletions
+2 -1
View File
@@ -497,7 +497,8 @@ namespace renderdoc
public UInt32 frameNumber;
public UInt32 firstEvent;
public UInt64 fileOffset;
public UInt64 fileSize;
public UInt64 uncompressedFileSize;
public UInt64 compressedFileSize;
public UInt64 persistentSize;
public UInt64 initDataSize;
public UInt64 captureTime;
+2 -4
View File
@@ -664,8 +664,6 @@ namespace renderdocui.Windows
{
statisticsLog.Clear();
long fileSize = (new FileInfo(m_Core.LogFileName)).Length;
var lastDraw = m_Core.CurDrawcalls[m_Core.CurDrawcalls.Length - 1];
while (lastDraw.children != null && lastDraw.children.Length > 0)
lastDraw = lastDraw.children[lastDraw.children.Length - 1];
@@ -739,8 +737,8 @@ namespace renderdocui.Windows
UInt64 persistentData = frameInfo.persistentSize;
float compressedMB = (float)fileSize / (1024.0f * 1024.0f);
float uncompressedMB = (float)frameInfo.fileSize / (1024.0f * 1024.0f);
float compressedMB = (float)frameInfo.compressedFileSize / (1024.0f * 1024.0f);
float uncompressedMB = (float)frameInfo.uncompressedFileSize / (1024.0f * 1024.0f);
float compressRatio = uncompressedMB / compressedMB;
float persistentMB = (float)frameInfo.persistentSize / (1024.0f * 1024.0f);
float initDataMB = (float)frameInfo.initDataSize / (1024.0f * 1024.0f);