diff options
| author | scorpion-26 <dev.scorpion26@gmail.com> | 2023-03-05 15:05:30 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-05 14:05:30 +0000 |
| commit | de5f1b2a833a59d3b0375f24675d27cea99e56d1 (patch) | |
| tree | 5c299606df594c758c8dd462680de4ac2a41d42d /src/render/OpenGL.hpp | |
| parent | dc7d783d1439b92b16bfe1851c2b699e7c7267e0 (diff) | |
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
Diffstat (limited to 'src/render/OpenGL.hpp')
| -rw-r--r-- | src/render/OpenGL.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
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 <list> #include <unordered_map> @@ -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); |
