Skip to content

Commit

Permalink
Update opengl_render.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
rtoumazet committed Nov 13, 2024
1 parent eba17aa commit c70fbec
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions saturnin/src/video/opengl/opengl_render.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [&]() {
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit c70fbec

Please sign in to comment.