GPU recording (--trace_gpu=file) and playback (gpu-trace-viewer file).

This commit is contained in:
Ben Vanik
2015-02-20 07:47:06 -08:00
parent c4aeedd0a3
commit 130c11a2ca
23 changed files with 667 additions and 285 deletions

View File

@@ -30,9 +30,9 @@ int xenia_main(std::vector<std::wstring>& args) {
}
// Grab path from the flag or unnamed argument.
if (FLAGS_target.size() || args.size() >= 2) {
if (!FLAGS_target.empty() || args.size() >= 2) {
std::wstring path;
if (FLAGS_target.size()) {
if (!FLAGS_target.empty()) {
// Passed as a named argument.
// TODO(benvanik): find something better than gflags that supports
// unicode.
@@ -49,10 +49,10 @@ int xenia_main(std::vector<std::wstring>& args) {
XELOGE("Failed to launch target: %.8X", result);
return 1;
}
}
// Wait until we are exited.
emulator->main_window()->loop()->AwaitQuit();
// Wait until we are exited.
emulator->main_window()->loop()->AwaitQuit();
}
emulator.reset();
Profiler::Dump();