summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Tony Wasserka2014-06-24 21:27:18 +0200
committerGravatar Tony Wasserka2014-07-22 22:27:27 +0200
commita4d89edd9b9d89f31308ee202f1f20a3ef033f0b (patch)
tree90f87b1f83d89bfb306e0f7af83f363b3f367130 /src
parentMerge pull request #32 from yuriks/master (diff)
downloadyuzu-a4d89edd9b9d89f31308ee202f1f20a3ef033f0b.tar.gz
yuzu-a4d89edd9b9d89f31308ee202f1f20a3ef033f0b.tar.xz
yuzu-a4d89edd9b9d89f31308ee202f1f20a3ef033f0b.zip
GPU debugger: Don't keep track of debugging data if no debugger views are active.
Diffstat (limited to 'src')
-rw-r--r--src/video_core/gpu_debugger.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/video_core/gpu_debugger.h b/src/video_core/gpu_debugger.h
index 5d909beba..ca1fb22d7 100644
--- a/src/video_core/gpu_debugger.h
+++ b/src/video_core/gpu_debugger.h
@@ -78,6 +78,9 @@ public:
78 78
79 void GXCommandProcessed(u8* command_data) 79 void GXCommandProcessed(u8* command_data)
80 { 80 {
81 if (observers.empty())
82 return;
83
81 gx_command_history.push_back(GSP_GPU::GXCommand()); 84 gx_command_history.push_back(GSP_GPU::GXCommand());
82 GSP_GPU::GXCommand& cmd = gx_command_history[gx_command_history.size()-1]; 85 GSP_GPU::GXCommand& cmd = gx_command_history[gx_command_history.size()-1];
83 86
@@ -91,6 +94,9 @@ public:
91 94
92 void CommandListCalled(u32 address, u32* command_list, u32 size_in_words) 95 void CommandListCalled(u32 address, u32* command_list, u32 size_in_words)
93 { 96 {
97 if (observers.empty())
98 return;
99
94 PicaCommandList cmdlist; 100 PicaCommandList cmdlist;
95 for (u32* parse_pointer = command_list; parse_pointer < command_list + size_in_words;) 101 for (u32* parse_pointer = command_list; parse_pointer < command_list + size_in_words;)
96 { 102 {