diff --git a/app/src/main/java/app/gamenative/display/GamescopeState.kt b/app/src/main/java/app/gamenative/display/GamescopeState.kt index eee3108af7..2726a9f7a9 100644 --- a/app/src/main/java/app/gamenative/display/GamescopeState.kt +++ b/app/src/main/java/app/gamenative/display/GamescopeState.kt @@ -40,9 +40,6 @@ object GamescopeSettings { const val SHARPNESS_STEPS = 5 const val SHARPNESS_DEFAULT = SHARPNESS_STEPS - /** The vblank grid a gamescope session is launched with (`-r`), in Hz. */ - const val SESSION_GRID_HZ = 1200 - /** gamescope's raw `scaling_sharpness` (0 = maximum sharpening) for a stored UI value. */ fun sharpnessRawValue(ui: Int): Int = (SHARPNESS_STEPS - ui.coerceIn(0, SHARPNESS_STEPS)) * 4 @@ -55,14 +52,6 @@ object GamescopeSettings { return if (mode == GamescopeScalingMode.DEFAULT) "" else " --scaler ${mode.id}" } - /** - * The `-r ` argument for a session's launch command, holding the grid at - * [SESSION_GRID_HZ] so `g_nNestedRefresh` wins over the panel rate the daemon advertises as - * the mode (see [SESSION_GRID_HZ]). - */ - @JvmStatic - fun gridArg(): String = " -r $SESSION_GRID_HZ" - /** * The output resolution a session presents at ("WxH"). [OUTPUT_RESOLUTION_OFF] resolves to the * container's screen size and [OUTPUT_RESOLUTION_DEVICE] to the panel's real pixel size; "" only diff --git a/app/src/main/java/com/winlator/xenvironment/components/BionicProgramLauncherComponent.java b/app/src/main/java/com/winlator/xenvironment/components/BionicProgramLauncherComponent.java index 49a1d5fb93..83a910522b 100644 --- a/app/src/main/java/com/winlator/xenvironment/components/BionicProgramLauncherComponent.java +++ b/app/src/main/java/com/winlator/xenvironment/components/BionicProgramLauncherComponent.java @@ -658,7 +658,6 @@ private String wrapWithGamescope(String command) { + (hdr ? " --hdr-enabled" : "") + (reshade.isEmpty() ? "" : " --reshade-effect " + reshade) + GamescopeSettings.scalerArg(container) - + GamescopeSettings.gridArg() + gamescopeModeGeometry() + " -- " + command; }