Skip to content

Commit

Permalink
steamcompmgr: Disable force composite when we would partial
Browse files Browse the repository at this point in the history
  • Loading branch information
misyltoad committed Jul 9, 2023
1 parent 3712ecd commit feb4451
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/steamcompmgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2404,7 +2404,12 @@ paint_all(bool async)

bool bNeedsNearest = g_upscaleFilter == GamescopeUpscaleFilter::NEAREST && frameInfo.layers[0].scale.x != 1.0f && frameInfo.layers[0].scale.y != 1.0f;

bool bWantsPartialComposite = frameInfo.layerCount >= 3;
// Disable partial composition for now until we get
// composite priorities working in libliftoff + also
// use the proper libliftoff composite plane system.
static constexpr bool kDisablePartialComposition = true;

bool bWantsPartialComposite = frameInfo.layerCount >= 3 && !kDisablePartialComposition;

bool bNeedsFullComposite = BIsNested();
bNeedsFullComposite |= alwaysComposite;
Expand Down Expand Up @@ -2457,10 +2462,6 @@ paint_all(bool async)

if ( bDoComposite == true )
{
// Disable partial composition for now until we get
// composite priorities working in libliftoff + also
// use the proper libliftoff composite plane system.
static constexpr bool kDisablePartialComposition = true;
if ( kDisablePartialComposition )
bNeedsFullComposite = true;

Expand Down

0 comments on commit feb4451

Please sign in to comment.