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
This commit is contained in:
scorpion-26
2023-03-05 15:05:30 +01:00
committed by GitHub
parent dc7d783d14
commit de5f1b2a83
3 changed files with 23 additions and 2 deletions

View File

@@ -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);