mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-29 01:46:38 +00:00
Don't try to access file on local disk in statistics. Refs #400
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user