diff options
author | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2016-12-15 07:01:24 +0100 |
---|---|---|
committer | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2016-12-15 07:06:40 +0100 |
commit | 945f554b849360405639efb6598afa2f18de64c2 (patch) | |
tree | 4d534fd50d1094d3d3c8655cb2aa9afe9789b430 /src/video_core/command_processor.cpp | |
parent | Merge pull request #2317 from yuriks/vertex-copy (diff) | |
download | yuzu-945f554b849360405639efb6598afa2f18de64c2.tar yuzu-945f554b849360405639efb6598afa2f18de64c2.tar.gz yuzu-945f554b849360405639efb6598afa2f18de64c2.tar.bz2 yuzu-945f554b849360405639efb6598afa2f18de64c2.tar.lz yuzu-945f554b849360405639efb6598afa2f18de64c2.tar.xz yuzu-945f554b849360405639efb6598afa2f18de64c2.tar.zst yuzu-945f554b849360405639efb6598afa2f18de64c2.zip |
Diffstat (limited to 'src/video_core/command_processor.cpp')
-rw-r--r-- | src/video_core/command_processor.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/video_core/command_processor.cpp b/src/video_core/command_processor.cpp index 8a5d8533c..018631c57 100644 --- a/src/video_core/command_processor.cpp +++ b/src/video_core/command_processor.cpp @@ -59,7 +59,10 @@ static void WritePicaReg(u32 id, u32 value, u32 mask) { regs[id] = (old_value & ~write_mask) | (value & write_mask); - DebugUtils::OnPicaRegWrite({(u16)id, (u16)mask, regs[id]}); + // Double check for is_pica_tracing to avoid call overhead + if (DebugUtils::IsPicaTracing()) { + DebugUtils::OnPicaRegWrite({(u16)id, (u16)mask, regs[id]}); + } if (g_debug_context) g_debug_context->OnEvent(DebugContext::Event::PicaCommandLoaded, |