diff options
| author | Henrik Rydgard <hrydgard@gmail.com> | 2016-04-24 14:19:49 +0200 |
|---|---|---|
| committer | Henrik Rydgard <hrydgard@gmail.com> | 2016-04-24 14:19:49 +0200 |
| commit | 01a1555b5d6d6b560c3168b76e5235175e7d081b (patch) | |
| tree | 967156d129f91b2887560028f17856f121bd25e3 /src/video_core/debug_utils/debug_utils.cpp | |
| parent | 0964a3ff530f2eb5b7ecdf9dfbb74deea890352d (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.cpp | 5 |
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 1f058c4e2..178a566f7 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); |
