mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-24 23:36:04 +00:00
feat(performance): switch to turn off idle game memory compression (#2346)
* feat(performance): add idle zram compression toggle * Gate the idle compression toggle on memory cap support and refresh counters first * fix(zram): retain launcher reclaim when idle compression is off * test(memory): verify launcher-only reclaim signals * fix(performance): keep game reclaim when focus is unknown * fix(performance): say when to turn idle compression off and that it applies on the next session --------- Co-authored-by: Kurt Himebauch <136133082+xXJSONDeruloXx@users.noreply.github.com>
This commit is contained in:
1 parent
a62933d023
commit
2e64ae7575
41 files changed
+141
-4
No files matched your search
@@ -49,6 +49,7 @@ fun PerformancePage(
|
||||
gpuClockPin: Boolean,
|
||||
ramCapMb: Int,
|
||||
zramClient: Boolean,
|
||||
zramIdle: Boolean,
|
||||
vramCapMb: Int,
|
||||
deviceRamMb: Int,
|
||||
ramCapAvailable: Boolean,
|
||||
@@ -72,6 +73,7 @@ fun PerformancePage(
|
||||
onGpuClockPin: (Boolean) -> Unit,
|
||||
onRamCapMb: (Int) -> Unit,
|
||||
onZramClient: (Boolean) -> Unit,
|
||||
onZramIdle: (Boolean) -> Unit,
|
||||
onVramCapMb: (Int) -> Unit,
|
||||
onProotNoSeccomp: (Boolean) -> Unit,
|
||||
onProotFastPath: (Boolean) -> Unit,
|
||||
@@ -146,6 +148,11 @@ fun PerformancePage(
|
||||
val top = (deviceRamMb / MEMORY_CAP_STEP_MB * MEMORY_CAP_STEP_MB).coerceAtLeast(MEMORY_CAP_STEP_MB)
|
||||
val off = stringResource(R.string.perf_cap_off)
|
||||
val auto = stringResource(R.string.perf_cap_auto)
|
||||
ToggleRow(
|
||||
host, "zramidle", stringResource(R.string.perf_zram_idle),
|
||||
if (ramCapAvailable) stringResource(R.string.perf_zram_idle_hint) else stringResource(R.string.perf_ram_cap_unavailable),
|
||||
zramIdle && ramCapAvailable, enabled = ramCapAvailable, onChange = onZramIdle,
|
||||
)
|
||||
ToggleRow(
|
||||
host, "zramclient", stringResource(R.string.perf_zram_client),
|
||||
if (ramCapAvailable) stringResource(R.string.perf_zram_client_hint) else stringResource(R.string.perf_ram_cap_unavailable),
|
||||
|
||||
Reference in new issue
Block a user