session: the Steam client's display caps at 720p by default (desktop stays 1080); a chosen cap still wins

This commit is contained in:
The412Banner committed 2026-09-22 17:49:29 -04:00
1 parent 5d8fadec65
commit d1ced8706f
4 files changed
+20 -12

No files matched your search

@@ -397,9 +397,10 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback {
// compositor letterboxes onto a squarer panel.
val aspect = if (SessionPrefs.shapeMode(this) == SessionPrefs.SHAPE_WIDE) 16f / 9f
else maxOf(panelW / panelH, 16f / 9f)
// 1080 tall at most by default: the client's CEF is the heaviest thing in the session, and
// above 1080p it costs frames for nothing anyone can see on a handheld panel. The mode's
// settings (the cog beside Play / Desktop) can lower the cap or lift it to the panel.
// Capped by default - 720 tall for the client, 1080 for the desktop: the client's CEF is the
// heaviest thing in the session, and pixels above that cost frames for nothing anyone can
// see on a handheld panel. The mode's settings (the cog beside Play / Desktop) can change
// the cap or lift it to the panel.
val mode = SessionPrefs.prefMode(intent.getStringExtra(SessionService.EXTRA_MODE) ?: SessionService.MODE_STEAM)
val cap = SessionPrefs.resolutionCap(this, mode)
val height = (if (cap <= 0) panelH else minOf(panelH, cap.toFloat())).toInt()