Don't re-read entire logfile every time, only read from last position

This commit is contained in:
baldurk
2020-09-02 16:32:36 +01:00
parent da0c836aef
commit d71d275dc4
8 changed files with 75 additions and 51 deletions
+1 -1
View File
@@ -1688,7 +1688,7 @@ void RenderDoc::FinishCaptureWriting(RDCFile *rdc, uint32_t frameNumber)
if(Capture_Debug_SnapshotDiagnosticLog())
{
rdcstr logcontents = FileIO::logfile_readall(RDCGETLOGFILE());
rdcstr logcontents = FileIO::logfile_readall(0, RDCGETLOGFILE());
SectionProperties props = {};
props.type = SectionType::EmbeddedLogfile;