summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Fernando Sahmkow2019-07-09 20:58:30 -0400
committerGravatar FernandoS272019-07-14 12:00:30 -0400
commita9943222f2afce6255b635091099925b3e451c8b (patch)
tree9c3d232484dcca38c6b8f317343dea38622f6a5e /src
parentGl_Texture_Cache: Measure Buffer Copy Times (diff)
downloadyuzu-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.cpp4
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
12MICROPROFILE_DEFINE(OpenGL_State, "OpenGL", "State Change", MP_RGB(192, 128, 128));
13
11namespace OpenGL { 14namespace OpenGL {
12 15
13using Maxwell = Tegra::Engines::Maxwell3D::Regs; 16using Maxwell = Tegra::Engines::Maxwell3D::Regs;
@@ -524,6 +527,7 @@ void OpenGLState::ApplySamplers() const {
524} 527}
525 528
526void OpenGLState::Apply() const { 529void OpenGLState::Apply() const {
530 MICROPROFILE_SCOPE(OpenGL_State);
527 ApplyFramebufferState(); 531 ApplyFramebufferState();
528 ApplyVertexArrayState(); 532 ApplyVertexArrayState();
529 ApplyShaderProgram(); 533 ApplyShaderProgram();