Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions app/src/main/java/app/gamenative/display/GamescopeState.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -55,14 +52,6 @@ object GamescopeSettings {
return if (mode == GamescopeScalingMode.DEFAULT) "" else " --scaler ${mode.id}"
}

/**
* The `-r <grid>` 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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,6 @@ private String wrapWithGamescope(String command) {
+ (hdr ? " --hdr-enabled" : "")
+ (reshade.isEmpty() ? "" : " --reshade-effect " + reshade)
+ GamescopeSettings.scalerArg(container)
+ GamescopeSettings.gridArg()
+ gamescopeModeGeometry() + " -- " + command;
}

Expand Down
Loading