mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-07-17 13:07:14 +00:00
Don't re-read entire logfile every time, only read from last position
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user