mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-19 12:56:06 +00:00
Performance: a switch to keep Steam's xalia helper out of the session
xalia is an x86 Windows program Proton launches to give Windows programs gamepad navigation. Under FEX it cannot load the session's aarch64 preload shim, so its socket() and memfd calls reach the vendor's seccomp filter raw - and where that answers ENOSYS, measured on a Galaxy Fold, it storms: 89 refusals of each in a few seconds, then a broken Wayland pipe and a session that is gone 6-12 seconds after Big Picture appeared. Fourteen sessions in eighteen minutes died that way on one device while the same build ran for minutes on another. Proton has its own gate for it, PROTON_USE_XALIA, so the switch sets that rather than interfering with the helper. Off by default: xalia is Valve's, and on a device whose seccomp answers its syscalls normally there is no reason to take it away.
This commit is contained in:
1 parent
d7038a2b50
commit
13c512de0b
5 files changed
+44
-5
No files matched your search
@@ -84,6 +84,7 @@ class MainActivity : ComponentActivity() {
|
||||
private var gameCores by mutableStateOf<Set<Int>>(emptySet())
|
||||
private var tuSysmem by mutableStateOf(false)
|
||||
private var zinkLazy by mutableStateOf(false)
|
||||
private var noXalia by mutableStateOf(false)
|
||||
private var directAudio by mutableStateOf(false)
|
||||
private var mic by mutableStateOf(false)
|
||||
private var linuxRows by mutableStateOf<List<DriverRow>>(emptyList())
|
||||
@@ -174,10 +175,11 @@ class MainActivity : ComponentActivity() {
|
||||
if (showPerformance) PerformanceDialog(
|
||||
cores = CpuCores.all.map { c -> CoreRow(c, "cpu$c" + (CpuCores.maxGhz(c)?.let { String.format(java.util.Locale.US, " · %.1f GHz", it) } ?: "")) },
|
||||
clientOverride = clientOverride, clientCores = clientCores, gameCores = gameCores,
|
||||
tuSysmem = tuSysmem, zinkLazy = zinkLazy,
|
||||
tuSysmem = tuSysmem, zinkLazy = zinkLazy, noXalia = noXalia,
|
||||
onClientOverride = { on -> SessionPrefs.setClientCpusOverride(this, on); clientOverride = on },
|
||||
onTuSysmem = { on -> SessionPrefs.setTuSysmem(this, on); tuSysmem = on },
|
||||
onZinkLazy = { on -> SessionPrefs.setZinkLazy(this, on); zinkLazy = on },
|
||||
onNoXalia = { on -> SessionPrefs.setNoXalia(this, on); noXalia = on },
|
||||
onClientCore = { core, on ->
|
||||
clientCores = if (on) clientCores + core else clientCores - core
|
||||
SessionPrefs.setClientCpus(this, CpuCores.format(clientCores))
|
||||
@@ -327,6 +329,7 @@ class MainActivity : ComponentActivity() {
|
||||
gameCores = CpuCores.parse(SessionPrefs.gameCpus(this)).ifEmpty { CpuCores.all.toSet() }
|
||||
tuSysmem = SessionPrefs.tuSysmem(this)
|
||||
zinkLazy = SessionPrefs.zinkLazy(this)
|
||||
noXalia = SessionPrefs.noXalia(this)
|
||||
}
|
||||
|
||||
private fun refreshProtons() {
|
||||
|
||||
Reference in new issue
Block a user