aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/debug_utils/debug_utils.cpp
diff options
context:
space:
mode:
authorHenrik Rydgard <hrydgard@gmail.com>2016-04-24 14:19:49 +0200
committerHenrik Rydgard <hrydgard@gmail.com>2016-04-24 14:19:49 +0200
commit76a55f83c7f9d104e7fe89b7defbca9be4f25b78 (patch)
tree967156d129f91b2887560028f17856f121bd25e3 /src/video_core/debug_utils/debug_utils.cpp
parent837009b4611b05fd9707bdb869a481dd7a038ed5 (diff)
Replace std::map with std::array for graphics event breakpoints, and allow the compiler to inline. Saves 1%+ in vertex heavy situations.
Diffstat (limited to 'src/video_core/debug_utils/debug_utils.cpp')
-rw-r--r--src/video_core/debug_utils/debug_utils.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/video_core/debug_utils/debug_utils.cpp b/src/video_core/debug_utils/debug_utils.cpp
index 1f058c4e2d..178a566f73 100644
--- a/src/video_core/debug_utils/debug_utils.cpp
+++ b/src/video_core/debug_utils/debug_utils.cpp
@@ -40,10 +40,7 @@ using nihstro::DVLPHeader;
namespace Pica {
-void DebugContext::OnEvent(Event event, void* data) {
- if (!breakpoints[event].enabled)
- return;
-
+void DebugContext::DoOnEvent(Event event, void* data) {
{
std::unique_lock<std::mutex> lock(breakpoint_mutex);