SettingsCPUView.axaml 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <UserControl
  2. x:Class="Ryujinx.Ava.UI.Views.Settings.SettingsCPUView"
  3. xmlns="https://github.com/avaloniaui"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  7. xmlns:locale="clr-namespace:Ryujinx.Ava.Common.Locale"
  8. xmlns:viewModels="clr-namespace:Ryujinx.Ava.UI.ViewModels"
  9. mc:Ignorable="d"
  10. x:DataType="viewModels:SettingsViewModel">
  11. <Design.DataContext>
  12. <viewModels:SettingsViewModel />
  13. </Design.DataContext>
  14. <ScrollViewer
  15. Name="CpuPage"
  16. HorizontalAlignment="Stretch"
  17. VerticalAlignment="Stretch"
  18. HorizontalScrollBarVisibility="Disabled"
  19. VerticalScrollBarVisibility="Auto">
  20. <Border Classes="settings">
  21. <StackPanel
  22. Margin="10"
  23. HorizontalAlignment="Stretch"
  24. Orientation="Vertical"
  25. Spacing="10">
  26. <TextBlock Classes="h1" Text="{locale:Locale SettingsTabCpuCache}" />
  27. <StackPanel
  28. Margin="10,0,0,0"
  29. HorizontalAlignment="Stretch"
  30. Orientation="Vertical">
  31. <CheckBox IsChecked="{Binding EnablePptc}">
  32. <TextBlock Text="{locale:Locale SettingsTabSystemEnablePptc}"
  33. ToolTip.Tip="{locale:Locale PptcToggleTooltip}" />
  34. </CheckBox>
  35. <CheckBox IsChecked="{Binding EnableLowPowerPptc}">
  36. <TextBlock Text="Low-power PPTC cache"
  37. ToolTip.Tip="Load the PPTC cache using a third of the amount of cores." />
  38. </CheckBox>
  39. </StackPanel>
  40. <Separator Height="1" />
  41. <TextBlock Classes="h1" Text="{locale:Locale SettingsTabCpuMemory}" />
  42. <StackPanel
  43. Margin="10,0,0,0"
  44. HorizontalAlignment="Stretch"
  45. Orientation="Vertical">
  46. <StackPanel Orientation="Horizontal">
  47. <TextBlock VerticalAlignment="Center"
  48. Text="{locale:Locale SettingsTabSystemMemoryManagerMode}"
  49. ToolTip.Tip="{locale:Locale MemoryManagerTooltip}"
  50. Width="250" />
  51. <ComboBox SelectedIndex="{Binding MemoryMode}"
  52. ToolTip.Tip="{locale:Locale MemoryManagerTooltip}"
  53. HorizontalContentAlignment="Left"
  54. Width="350">
  55. <ComboBoxItem
  56. ToolTip.Tip="{locale:Locale MemoryManagerSoftwareTooltip}">
  57. <TextBlock
  58. Text="{locale:Locale SettingsTabSystemMemoryManagerModeSoftware}" />
  59. </ComboBoxItem>
  60. <ComboBoxItem
  61. ToolTip.Tip="{locale:Locale MemoryManagerHostTooltip}">
  62. <TextBlock Text="{locale:Locale SettingsTabSystemMemoryManagerModeHost}" />
  63. </ComboBoxItem>
  64. <ComboBoxItem
  65. ToolTip.Tip="{locale:Locale MemoryManagerUnsafeTooltip}">
  66. <TextBlock
  67. Text="{locale:Locale SettingsTabSystemMemoryManagerModeHostUnchecked}" />
  68. </ComboBoxItem>
  69. </ComboBox>
  70. </StackPanel>
  71. <CheckBox IsChecked="{Binding UseHypervisor}"
  72. IsVisible="{Binding IsHypervisorAvailable}"
  73. ToolTip.Tip="{locale:Locale UseHypervisorTooltip}">
  74. <TextBlock Text="{locale:Locale SettingsTabSystemUseHypervisor}"
  75. ToolTip.Tip="{locale:Locale UseHypervisorTooltip}" />
  76. </CheckBox>
  77. </StackPanel>
  78. </StackPanel>
  79. </Border>
  80. </ScrollViewer>
  81. </UserControl>