Session: the drawer's frame limit works in desktop mode, up to 165 (#1885)

This commit is contained in:
K11MCH1 authored and GitHub committed 2026-11-01 00:16:11 -04:00
1 parent 9b024ffcdc
commit 901c453c16
2 files changed
+3 -3

No files matched your search

@@ -363,11 +363,11 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback {
private var drawerGameProfileId by mutableStateOf<Long?>(null)
private var fpsLimit by mutableStateOf(SessionState.fpsLimit)
private fun noSteamSession(): Boolean = SessionState.mode == SessionService.MODE_RUN &&
private fun noSteamSession(): Boolean = (SessionState.mode == SessionService.MODE_RUN &&
SessionState.program in setOf(
com.droiddeck.launcher.session.NoSteamLaunch.PROTON_RUN, com.droiddeck.launcher.session.NoSteamLaunch.EPIC,
com.droiddeck.launcher.session.NoSteamLaunch.BATTLENET,
)
)) || SessionState.mode == SessionService.MODE_DESKTOP
private val drawerGameInventory = GameProfileInventoryCache<Library.SteamGame>()
private var drawerGameInventoryRevision = 0L
private var drawerGameFexPresetSaving by mutableStateOf(false)
@@ -1142,7 +1142,7 @@ object SessionPrefs {
/** The drawer's frame limit slider: its first stop is Off. */
const val FPS_LIMIT_OFF = 15
const val FPS_LIMIT_MAX = 120
const val FPS_LIMIT_MAX = 165
/**
* Buffers go back to the game as soon as they are replaced instead of once per refresh;