Improve workflow for capture import/export

* If the export doesn't need buffers, we export directly from the loaded
  capture file instead of re-loading it.
* Add progress bars for the load step so it shows what's happening
  instead of looking stalled.
* Reduce compression rate on XML+ZIP buffers as it took too long trying
  to compress when exporting large captures.
This commit is contained in:
baldurk
2018-02-18 18:01:54 +00:00
parent 48c2678fed
commit 934800793a
18 changed files with 425 additions and 244 deletions
+2 -2
View File
@@ -369,7 +369,7 @@ void ReplayManager::ReopenCaptureFile(const QString &path)
{
if(!m_CaptureFile)
m_CaptureFile = RENDERDOC_OpenCaptureFile();
m_CaptureFile->OpenFile(path.toUtf8().data(), "rdc");
m_CaptureFile->OpenFile(path.toUtf8().data(), "rdc", NULL);
}
uint32_t ReplayManager::ExecuteAndInject(const rdcstr &exe, const rdcstr &workingDir,
@@ -423,7 +423,7 @@ void ReplayManager::run(int proxyRenderer, const QString &capturefile,
{
m_CaptureFile = RENDERDOC_OpenCaptureFile();
m_CreateStatus = m_CaptureFile->OpenFile(capturefile.toUtf8().data(), "rdc");
m_CreateStatus = m_CaptureFile->OpenFile(capturefile.toUtf8().data(), "rdc", NULL);
if(m_CreateStatus == ReplayStatus::Succeeded)
std::tie(m_CreateStatus, m_Renderer) = m_CaptureFile->OpenCapture(progress);