From de5f1b2a833a59d3b0375f24675d27cea99e56d1 Mon Sep 17 00:00:00 2001 From: scorpion-26 Date: Sun, 5 Mar 2023 15:05:30 +0100 Subject: Optionally expose time to screen shaders (#1700) * Optionally expose time to screen shaders Since that collides with damage tracking, it will only be done, when damage tracking is disabled, meaning this comes at no cost for everyone not using time. * Rename m_Timer to m_tGlobalTimer --- src/render/OpenGL.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/render/OpenGL.hpp') diff --git a/src/render/OpenGL.hpp b/src/render/OpenGL.hpp index d2dd5ce6..171efb35 100644 --- a/src/render/OpenGL.hpp +++ b/src/render/OpenGL.hpp @@ -3,6 +3,7 @@ #include "../defines.hpp" #include "../helpers/Monitor.hpp" #include "../helpers/Color.hpp" +#include "../helpers/Timer.hpp" #include #include @@ -134,6 +135,7 @@ class CHyprOpenGLImpl { bool m_bApplyFinalShader = false; CShader m_sFinalScreenShader; + CTimer m_tGlobalTimer; GLuint createProgram(const std::string&, const std::string&, bool dynamic = false); GLuint compileShader(const GLuint&, std::string, bool dynamic = false); -- cgit v1.2.3