From 94e2627697d20e8bc5d3cd87800a7f1d905bfa27 Mon Sep 17 00:00:00 2001 From: Adam Date: Fri, 5 Nov 2021 11:05:07 -0400 Subject: [PATCH] gpu: update suppressed warnings --- .../runelite/client/plugins/gpu/GpuPlugin.java | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/runelite-client/src/main/java/net/runelite/client/plugins/gpu/GpuPlugin.java b/runelite-client/src/main/java/net/runelite/client/plugins/gpu/GpuPlugin.java index 774596073c..f57a76b7ea 100644 --- a/runelite-client/src/main/java/net/runelite/client/plugins/gpu/GpuPlugin.java +++ b/runelite-client/src/main/java/net/runelite/client/plugins/gpu/GpuPlugin.java @@ -401,9 +401,21 @@ public class GpuPlugin extends Plugin implements DrawCallbacks { gl.glEnable(gl.GL_DEBUG_OUTPUT); - // Suppress warning messages which flood the log on NVIDIA systems. - gl.getContext().glDebugMessageControl(gl.GL_DEBUG_SOURCE_API, gl.GL_DEBUG_TYPE_OTHER, - gl.GL_DEBUG_SEVERITY_NOTIFICATION, 0, null, 0, false); + // GLDebugEvent[ id 0x20071 + // type Warning: generic + // severity Unknown (0x826b) + // source GL API + // msg Buffer detailed info: Buffer object 11 (bound to GL_ARRAY_BUFFER_ARB, and GL_SHADER_STORAGE_BUFFER (4), usage hint is GL_STREAM_DRAW) will use VIDEO memory as the source for buffer object operations. + glContext.glDebugMessageControl(gl.GL_DEBUG_SOURCE_API, gl.GL_DEBUG_TYPE_OTHER, + gl.GL_DONT_CARE, 1, new int[]{0x20071}, 0, false); + + // GLDebugMessageHandler: GLDebugEvent[ id 0x20052 + // type Warning: implementation dependent performance + // severity Medium: Severe performance/deprecation/other warnings + // source GL API + // msg Pixel-path performance warning: Pixel transfer is synchronized with 3D rendering. + glContext.glDebugMessageControl(gl.GL_DEBUG_SOURCE_API, gl.GL_DEBUG_TYPE_PERFORMANCE, + gl.GL_DONT_CARE, 1, new int[]{0x20052}, 0, false); } initVao();