diff options
| author | Tom Englund <tomenglund26@gmail.com> | 2026-02-06 22:02:20 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-02-06 21:02:20 +0000 |
| commit | 63eb6b3bda71e7e5a1043f585ae39e878cb56b55 (patch) | |
| tree | 2966a3d36d8715cd9dc740a1fce1ce5d809536d1 /src/config/ConfigDescriptions.hpp | |
| parent | 8606bc255b5cfe2ca6270fa71053c76a6ce5e837 (diff) | |
opengl: add debug:gl_debugging (#13183)
add debug:gl_debugging so we can disable gl debugging entirerly,
both glGetError and enabling EGL_KHR_debug has its cost, we still have
EXT_create_context_robustness and glGetGraphicsResetStatus that should
catch context loss, and is generally cheap to call it only checks a flag
set.
glGetError might cause a implicit flush to get any pending calls sent to
the gpu.
however to get EGL_KHR_debug back enabled we now require a restart of
the compositor after changing debug:gl_debugging
Diffstat (limited to 'src/config/ConfigDescriptions.hpp')
| -rw-r--r-- | src/config/ConfigDescriptions.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/config/ConfigDescriptions.hpp b/src/config/ConfigDescriptions.hpp index 7ae948bb..0a1e37d5 100644 --- a/src/config/ConfigDescriptions.hpp +++ b/src/config/ConfigDescriptions.hpp @@ -1753,6 +1753,12 @@ inline static const std::vector<SConfigOptionDescription> CONFIG_OPTIONS = { .data = SConfigOptionDescription::SBoolData{false}, }, SConfigOptionDescription{ + .value = "debug:gl_debugging", + .description = "enable OpenGL debugging and error checking, they hurt performance.", + .type = CONFIG_OPTION_BOOL, + .data = SConfigOptionDescription::SBoolData{false}, + }, + SConfigOptionDescription{ .value = "debug:disable_logs", .description = "disable logging to a file", .type = CONFIG_OPTION_BOOL, |
