diff options
| author | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2016-12-14 22:01:24 -0800 |
|---|---|---|
| committer | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2016-12-14 22:06:40 -0800 |
| commit | eb75205231a071ca5ded72e1cd58a0e20a03f320 (patch) | |
| tree | 4d534fd50d1094d3d3c8655cb2aa9afe9789b430 /src/video_core/debug_utils/debug_utils.h | |
| parent | 37ca07cd2f9cc80de33dc70001c621771c30b11a (diff) | |
VideoCore: Inline IsPicaTracing
Speeds up ALBW main menu slightly (~3%)
Diffstat (limited to 'src/video_core/debug_utils/debug_utils.h')
| -rw-r--r-- | src/video_core/debug_utils/debug_utils.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/video_core/debug_utils/debug_utils.h b/src/video_core/debug_utils/debug_utils.h index 189c93abbc..46ea8d9c76 100644 --- a/src/video_core/debug_utils/debug_utils.h +++ b/src/video_core/debug_utils/debug_utils.h @@ -196,8 +196,12 @@ struct PicaTrace { std::vector<Write> writes; }; +extern bool g_is_pica_tracing; + void StartPicaTracing(); -bool IsPicaTracing(); +inline bool IsPicaTracing() { + return g_is_pica_tracing; +} void OnPicaRegWrite(PicaTrace::Write write); std::unique_ptr<PicaTrace> FinishPicaTracing(); |
