VERY experimental Nintendo Switch 2 emulator
C++
GL_State: Add a microprofile timer to OpenGL state.
Fernando Sahmkowec05f185a35c
diff --git a/src/video_core/renderer_opengl/gl_state.cpp b/src/video_core/renderer_opengl/gl_state.cppindex d86e137ac1..0eae98afef 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();