From a1e47099105830a8772768224fe9a2a09ad5c9f8 Mon Sep 17 00:00:00 2001 From: brunoherbelin Date: Sat, 13 Feb 2021 12:39:21 +0100 Subject: [PATCH] OGL optimization (no mipmap, antialias lines) --- RenderingManager.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/RenderingManager.cpp b/RenderingManager.cpp index c81f225..4573d49 100644 --- a/RenderingManager.cpp +++ b/RenderingManager.cpp @@ -678,9 +678,11 @@ bool RenderingWindow::init(int index, GLFWwindow *share) // This hint can improve the speed of texturing when perspective-correct texture coordinate interpolation isn't needed glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_FASTEST); - // + // fast mipmaps (we are not really using mipmaps anyway) + glHint(GL_GENERATE_MIPMAP_HINT, GL_FASTEST); + // acurate derivative for shader glHint(GL_FRAGMENT_SHADER_DERIVATIVE_HINT, GL_NICEST); - glHint(GL_GENERATE_MIPMAP_HINT, GL_NICEST); + glHint(GL_LINE_SMOOTH_HINT, GL_NICEST); // if not main window if ( master_ != NULL ) {