diff options
| author | 2019-07-09 20:58:30 -0400 | |
|---|---|---|
| committer | 2019-07-14 12:00:30 -0400 | |
| commit | a9943222f2afce6255b635091099925b3e451c8b (patch) | |
| tree | 9c3d232484dcca38c6b8f317343dea38622f6a5e /src | |
| parent | Gl_Texture_Cache: Measure Buffer Copy Times (diff) | |
| download | yuzu-a9943222f2afce6255b635091099925b3e451c8b.tar.gz yuzu-a9943222f2afce6255b635091099925b3e451c8b.tar.xz yuzu-a9943222f2afce6255b635091099925b3e451c8b.zip | |
GL_State: Add a microprofile timer to OpenGL state.
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/renderer_opengl/gl_state.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/gl_state.cpp b/src/video_core/renderer_opengl/gl_state.cpp index d86e137ac..0eae98afe 100644 --- a/src/video_core/renderer_opengl/gl_state.cpp +++ b/src/video_core/renderer_opengl/gl_state.cpp | |||
| @@ -6,8 +6,11 @@ | |||
| 6 | #include <glad/glad.h> | 6 | #include <glad/glad.h> |
| 7 | #include "common/assert.h" | 7 | #include "common/assert.h" |
| 8 | #include "common/logging/log.h" | 8 | #include "common/logging/log.h" |
| 9 | #include "common/microprofile.h" | ||
| 9 | #include "video_core/renderer_opengl/gl_state.h" | 10 | #include "video_core/renderer_opengl/gl_state.h" |
| 10 | 11 | ||
| 12 | MICROPROFILE_DEFINE(OpenGL_State, "OpenGL", "State Change", MP_RGB(192, 128, 128)); | ||
| 13 | |||
| 11 | namespace OpenGL { | 14 | namespace OpenGL { |
| 12 | 15 | ||
| 13 | using Maxwell = Tegra::Engines::Maxwell3D::Regs; | 16 | using Maxwell = Tegra::Engines::Maxwell3D::Regs; |
| @@ -524,6 +527,7 @@ void OpenGLState::ApplySamplers() const { | |||
| 524 | } | 527 | } |
| 525 | 528 | ||
| 526 | void OpenGLState::Apply() const { | 529 | void OpenGLState::Apply() const { |
| 530 | MICROPROFILE_SCOPE(OpenGL_State); | ||
| 527 | ApplyFramebufferState(); | 531 | ApplyFramebufferState(); |
| 528 | ApplyVertexArrayState(); | 532 | ApplyVertexArrayState(); |
| 529 | ApplyShaderProgram(); | 533 | ApplyShaderProgram(); |