Skip to content

Commit

Permalink
Merge branch 'vdp2-cache' of https://github.com/rtoumazet/saturnin in…
Browse files Browse the repository at this point in the history
…to vdp2-cache
  • Loading branch information
rtoumazet committed Nov 28, 2024
2 parents e937b45 + c70fbec commit 6e922f7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions saturnin/src/video/opengl/opengl_render.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,9 @@ void OpenglRender::render() {
}

void OpenglRender::renderByScreenPriority() {
// Each screen is rendered to a sce
// 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 @@ -198,7 +200,7 @@ 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;

Expand Down

0 comments on commit 6e922f7

Please sign in to comment.