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 | 945f554b849360405639efb6598afa2f18de64c2 (patch) | |
| tree | 4d534fd50d1094d3d3c8655cb2aa9afe9789b430 /src/video_core/debug_utils/debug_utils.h | |
| parent | ec9130de8dfaf22bfc5dc8a4988b68532955b43a (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 189c93abb..46ea8d9c7 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(); |
