diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2019-07-10 02:58:30 +0200 |
---|---|---|
committer | FernandoS27 <fsahmkow27@gmail.com> | 2019-07-14 18:00:30 +0200 |
commit | a9943222f2afce6255b635091099925b3e451c8b (patch) | |
tree | 9c3d232484dcca38c6b8f317343dea38622f6a5e /src/video_core | |
parent | Gl_Texture_Cache: Measure Buffer Copy Times (diff) | |
download | yuzu-a9943222f2afce6255b635091099925b3e451c8b.tar yuzu-a9943222f2afce6255b635091099925b3e451c8b.tar.gz yuzu-a9943222f2afce6255b635091099925b3e451c8b.tar.bz2 yuzu-a9943222f2afce6255b635091099925b3e451c8b.tar.lz yuzu-a9943222f2afce6255b635091099925b3e451c8b.tar.xz yuzu-a9943222f2afce6255b635091099925b3e451c8b.tar.zst yuzu-a9943222f2afce6255b635091099925b3e451c8b.zip |
Diffstat (limited to 'src/video_core')
-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 @@ #include <glad/glad.h> #include "common/assert.h" #include "common/logging/log.h" +#include "common/microprofile.h" #include "video_core/renderer_opengl/gl_state.h" +MICROPROFILE_DEFINE(OpenGL_State, "OpenGL", "State Change", MP_RGB(192, 128, 128)); + namespace OpenGL { using Maxwell = Tegra::Engines::Maxwell3D::Regs; @@ -524,6 +527,7 @@ void OpenGLState::ApplySamplers() const { } void OpenGLState::Apply() const { + MICROPROFILE_SCOPE(OpenGL_State); ApplyFramebufferState(); ApplyVertexArrayState(); ApplyShaderProgram(); |