From c70fbec9f091fd16cb1219005edbc244d003cb33 Mon Sep 17 00:00:00 2001 From: Runik <34705093+rtoumazet@users.noreply.github.com> Date: Wed, 13 Nov 2024 16:57:32 +0100 Subject: [PATCH] Update opengl_render.cpp --- saturnin/src/video/opengl/opengl_render.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/saturnin/src/video/opengl/opengl_render.cpp b/saturnin/src/video/opengl/opengl_render.cpp index b33ea7b..781343f 100644 --- a/saturnin/src/video/opengl/opengl_render.cpp +++ b/saturnin/src/video/opengl/opengl_render.cpp @@ -260,6 +260,9 @@ void OpenglRender::render() { } void OpenglRender::renderByScreenPriority() { + // Parts to be displayed are moved to global_parts_list_, with one entry by priority + linked FBO (FboKey). + // + // Goal is to reuse FBOs which are identical from previous frame to improve performances. MapOfPartsList global_parts_list; const auto getPartsFromThread = [&]() { @@ -296,8 +299,8 @@ void OpenglRender::renderByScreenPriority() { void OpenglRender::renderByParts() { // All the parts to be displayed are read, regardless of their screen of attachment. - // Parts are sorted by priority. - + // Parts are sorted by priority, nothing's cached. + PartsList parts_list; preRender();