Batch prepare and allow limited buffering for vulkan initial states

* We add a capture option that defines a soft limit we aim to keep under for
  memory overhead during capture, excess initial states after that will be
  stored temporarily on disk.
This commit is contained in:
baldurk
2023-06-02 18:53:45 +01:00
parent 1ec0606ce8
commit 0f851df6c2
31 changed files with 586 additions and 188 deletions
+4
View File
@@ -1639,6 +1639,9 @@ int renderdoccmd(GlobalEnvironment &env, std::vector<std::string> &argv)
"Capturing Option: Include all live resources, not just those used by a frame.");
cmd.add("opt-capture-all-cmd-lists", 0,
"Capturing Option: In D3D11, record all command lists from application start.");
cmd.add<int>("opt-soft-memory-limit", 0,
"Capturing Option: Specify a soft memory limit to try to respect.", false, 0,
cmdline::range(0, 10000));
}
cmd.parse_check(argv, true);
@@ -1670,6 +1673,7 @@ int renderdoccmd(GlobalEnvironment &env, std::vector<std::string> &argv)
opts.captureAllCmdLists = true;
opts.delayForDebugger = (uint32_t)cmd.get<int>("opt-delay-for-debugger");
opts.softMemoryLimit = (uint32_t)cmd.get<int>("opt-soft-memory-limit");
}
if(!it->second->HandlesUsageManually() && cmd.exist("help"))