Skip to content

A rootless Android app that boots Alpine Linux: run containers (Podman/Docker/LXC) and GUI desktop apps.

feat(settings): say that more vCPUs are slower on the QEMU backend

ExTv7b933fb6ed99
diff --git a/app/src/main/java/com/excp/podroid/ui/components/VmResourceChips.kt b/app/src/main/java/com/excp/podroid/ui/components/VmResourceChips.kt
index 44d7d20..07bc865 100644
--- a/app/src/main/java/com/excp/podroid/ui/components/VmResourceChips.kt
+++ b/app/src/main/java/com/excp/podroid/ui/components/VmResourceChips.kt
@@ -108,6 +108,14 @@ fun VmCpuChips(
)
}
}
+ // The high chips read as "more power" and are the opposite under emulation,
+ // so say so where the choice is made rather than leaving it to be discovered.
+ Text(
+ text = stringResource(R.string.cpu_cores_hint),
+ style = MaterialTheme.typography.bodySmall,
+ color = MaterialTheme.colorScheme.onSurfaceVariant,
+ modifier = Modifier.padding(top = PodroidTokens.Spacing.SM),
+ )
if (showDivider) {
HorizontalDivider(
color = MaterialTheme.colorScheme.outline,
diff --git a/app/src/main/res/values-zh/strings.xml b/app/src/main/res/values-zh/strings.xml
index 2653d38..ff8f54b 100644
--- a/app/src/main/res/values-zh/strings.xml
+++ b/app/src/main/res/values-zh/strings.xml
@@ -50,6 +50,7 @@
<string name="vm_config_description">默认配置针对性能和电池进行了优化。随时可在设置中更改。</string>
<string name="resources">资源</string>
<string name="cpu_cores">CPU 核心数</string>
+ <string name="cpu_cores_hint">核心越多不一定越快:在 QEMU (TCG) 后端,实测 8 核比 4 核更慢。AVF 后端可正常扩展。</string>
<string name="ram_label">内存</string>
<string name="network_label">网络</string>
<string name="ssh_access">SSH 访问</string>
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 154a4cf..b378c87 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -50,6 +50,7 @@
<string name="vm_config_description">Defaults tuned for performance and battery. Change anytime in Settings.</string>
<string name="resources">Resources</string>
<string name="cpu_cores">CPU cores</string>
+ <string name="cpu_cores_hint">More is not always faster: on the QEMU (TCG) backend 8 cores measured slower than 4. AVF scales normally.</string>
<string name="ram_label">RAM</string>
<string name="network_label">Network</string>
<string name="ssh_access">SSH access</string>