diff options
| author | 2015-08-17 18:25:21 -0300 | |
|---|---|---|
| committer | 2015-08-24 22:16:28 -0300 | |
| commit | 0fcabd2b11a5b1d4d16f6f6bdf1efd54d2c45237 (patch) | |
| tree | a1651d48113413e2de1e6e309362511b1ff7ffa8 /src/video_core/shader/shader.cpp | |
| parent | citra-qt: Add helper function to get a monospace QFont (diff) | |
| download | yuzu-0fcabd2b11a5b1d4d16f6f6bdf1efd54d2c45237.tar.gz yuzu-0fcabd2b11a5b1d4d16f6f6bdf1efd54d2c45237.tar.xz yuzu-0fcabd2b11a5b1d4d16f6f6bdf1efd54d2c45237.zip | |
Integrate the MicroProfile profiling library
This brings goodies such as a configurable user interface and
multi-threaded timeline view.
Diffstat (limited to 'src/video_core/shader/shader.cpp')
| -rw-r--r-- | src/video_core/shader/shader.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/video_core/shader/shader.cpp b/src/video_core/shader/shader.cpp index 4e9836c80..be5588c00 100644 --- a/src/video_core/shader/shader.cpp +++ b/src/video_core/shader/shader.cpp | |||
| @@ -9,6 +9,7 @@ | |||
| 9 | 9 | ||
| 10 | #include "common/hash.h" | 10 | #include "common/hash.h" |
| 11 | #include "common/make_unique.h" | 11 | #include "common/make_unique.h" |
| 12 | #include "common/microprofile.h" | ||
| 12 | #include "common/profiler.h" | 13 | #include "common/profiler.h" |
| 13 | 14 | ||
| 14 | #include "video_core/debug_utils/debug_utils.h" | 15 | #include "video_core/debug_utils/debug_utils.h" |
| @@ -55,11 +56,13 @@ void Shutdown() { | |||
| 55 | } | 56 | } |
| 56 | 57 | ||
| 57 | static Common::Profiling::TimingCategory shader_category("Vertex Shader"); | 58 | static Common::Profiling::TimingCategory shader_category("Vertex Shader"); |
| 59 | MICROPROFILE_DEFINE(GPU_VertexShader, "GPU", "Vertex Shader", MP_RGB(50, 50, 240)); | ||
| 58 | 60 | ||
| 59 | OutputVertex Run(UnitState<false>& state, const InputVertex& input, int num_attributes) { | 61 | OutputVertex Run(UnitState<false>& state, const InputVertex& input, int num_attributes) { |
| 60 | auto& config = g_state.regs.vs; | 62 | auto& config = g_state.regs.vs; |
| 61 | 63 | ||
| 62 | Common::Profiling::ScopeTimer timer(shader_category); | 64 | Common::Profiling::ScopeTimer timer(shader_category); |
| 65 | MICROPROFILE_SCOPE(GPU_VertexShader); | ||
| 63 | 66 | ||
| 64 | state.program_counter = config.main_offset; | 67 | state.program_counter = config.main_offset; |
| 65 | state.debug.max_offset = 0; | 68 | state.debug.max_offset = 0; |