From feb4451a20b01c1c43e6c04e793be4918d5521b9 Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Sun, 9 Jul 2023 20:03:35 +0100 Subject: [PATCH] steamcompmgr: Disable force composite when we would partial --- src/steamcompmgr.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/steamcompmgr.cpp b/src/steamcompmgr.cpp index f4918f6..0976f93 100644 --- a/src/steamcompmgr.cpp +++ b/src/steamcompmgr.cpp @@ -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; @@ -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;