diff options
| author | 2015-08-24 18:30:11 -0700 | |
|---|---|---|
| committer | 2015-08-24 18:30:11 -0700 | |
| commit | ac0104b8b0584023cfbd7a4800f1ca1db890188f (patch) | |
| tree | a1651d48113413e2de1e6e309362511b1ff7ffa8 /src/video_core/rasterizer.cpp | |
| parent | Merge pull request #1063 from Subv/hw_renderer_debug_fb (diff) | |
| parent | Integrate the MicroProfile profiling library (diff) | |
| download | yuzu-ac0104b8b0584023cfbd7a4800f1ca1db890188f.tar.gz yuzu-ac0104b8b0584023cfbd7a4800f1ca1db890188f.tar.xz yuzu-ac0104b8b0584023cfbd7a4800f1ca1db890188f.zip | |
Merge pull request #1048 from yuriks/microprofile
Integrate the MicroProfile profiling library
Diffstat (limited to 'src/video_core/rasterizer.cpp')
| -rw-r--r-- | src/video_core/rasterizer.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/video_core/rasterizer.cpp b/src/video_core/rasterizer.cpp index b83798b0f..4a159da8e 100644 --- a/src/video_core/rasterizer.cpp +++ b/src/video_core/rasterizer.cpp | |||
| @@ -7,6 +7,7 @@ | |||
| 7 | #include "common/color.h" | 7 | #include "common/color.h" |
| 8 | #include "common/common_types.h" | 8 | #include "common/common_types.h" |
| 9 | #include "common/math_util.h" | 9 | #include "common/math_util.h" |
| 10 | #include "common/microprofile.h" | ||
| 10 | #include "common/profiler.h" | 11 | #include "common/profiler.h" |
| 11 | 12 | ||
| 12 | #include "core/hw/gpu.h" | 13 | #include "core/hw/gpu.h" |
| @@ -267,6 +268,7 @@ static int SignedArea (const Math::Vec2<Fix12P4>& vtx1, | |||
| 267 | }; | 268 | }; |
| 268 | 269 | ||
| 269 | static Common::Profiling::TimingCategory rasterization_category("Rasterization"); | 270 | static Common::Profiling::TimingCategory rasterization_category("Rasterization"); |
| 271 | MICROPROFILE_DEFINE(GPU_Rasterization, "GPU", "Rasterization", MP_RGB(50, 50, 240)); | ||
| 270 | 272 | ||
| 271 | /** | 273 | /** |
| 272 | * Helper function for ProcessTriangle with the "reversed" flag to allow for implementing | 274 | * Helper function for ProcessTriangle with the "reversed" flag to allow for implementing |
| @@ -279,6 +281,7 @@ static void ProcessTriangleInternal(const Shader::OutputVertex& v0, | |||
| 279 | { | 281 | { |
| 280 | const auto& regs = g_state.regs; | 282 | const auto& regs = g_state.regs; |
| 281 | Common::Profiling::ScopeTimer timer(rasterization_category); | 283 | Common::Profiling::ScopeTimer timer(rasterization_category); |
| 284 | MICROPROFILE_SCOPE(GPU_Rasterization); | ||
| 282 | 285 | ||
| 283 | // vertex positions in rasterizer coordinates | 286 | // vertex positions in rasterizer coordinates |
| 284 | static auto FloatToFix = [](float24 flt) { | 287 | static auto FloatToFix = [](float24 flt) { |