Skip to content

Commit

Permalink
iOS+macOS: tweaked system settings
Browse files Browse the repository at this point in the history
  • Loading branch information
osy committed Jan 25, 2021
1 parent 89df357 commit d9bb1fe
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions Platform/Shared/VMConfigSystemView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ struct VMConfigSystemView: View {
})
if showAdvanced {
Section(header: Text("CPU")) {
VMConfigStringPicker(selection: $config.systemCPU.animation(), label: Text("CPU"), rawValues: UTMConfiguration.supportedCpus(forArchitecture: config.systemArchitecture) ?? [], displayValues: UTMConfiguration.supportedCpus(forArchitecturePretty: config.systemArchitecture) ?? [])
VMConfigStringPicker(selection: $config.systemCPU.animation(), label: EmptyView(), rawValues: UTMConfiguration.supportedCpus(forArchitecture: config.systemArchitecture) ?? [], displayValues: UTMConfiguration.supportedCpus(forArchitecturePretty: config.systemArchitecture) ?? [])
}
let allFlags = UTMConfiguration.supportedCpuFlags(forArchitecture: config.systemArchitecture) ?? []
let activeFlags = config.systemCPUFlags ?? []
Expand All @@ -99,28 +99,27 @@ struct VMConfigSystemView: View {
}
}
}
Section(footer: Text("Set to 0 to use maximum supported CPUs. Force multicore might result in incorrect emulation.").padding(.bottom)) {
Section(header: Text("CPU Cores"), footer: Text("Set to 0 to use maximum supported CPUs. Force multicore might result in incorrect emulation.").padding(.bottom)) {
HStack {
Text("CPU Count")
Spacer()
NumberTextField("Default", number: $config.systemCPUCount, onEditingChanged: validateCpuCount)
.multilineTextAlignment(.trailing)
Text("Cores")
}
Toggle(isOn: $config.systemForceMulticore, label: {
Text("Force Multicore")
})
}
Section(footer: Text("Set to 0 for default which is 1/4 of the allocated Memory size. This is in addition to the host memory!").padding(.bottom)) {
Section(header: Text("JIT Cache"), footer: Text("Set to 0 for default which is 1/4 of the allocated Memory size. This is in addition to the host memory!").padding(.bottom)) {
HStack {
Text("JIT Cache")
Spacer()
NumberTextField("Default", number: $config.systemJitCacheSize, onEditingChanged: validateMemorySize)
.multilineTextAlignment(.trailing)
Text("MB")
}
}
Section(header: Text("QEMU Machine Properties")) {
TextField("None", text: $config.systemMachineProperties.bound)
}
Section(header: Text("Boot Options")) {
VMConfigStringPicker(selection: $config.systemBootDevice, label: Text("Boot Order"), rawValues: UTMConfiguration.supportedBootDevices(), displayValues: UTMConfiguration.supportedBootDevicesPretty())
}
}
Expand Down

0 comments on commit d9bb1fe

Please sign in to comment.