mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-04-21 03:03:15 +02:00
Removed the tweaks tab. The function has been moved to the Dirty Hacks section. The function has been renamed to DisableFixOcclusionCulling.
By default, it fixes the occlusion issue
This commit is contained in:
parent
421158d75f
commit
83a13e8f35
16 changed files with 51 additions and 209 deletions
|
@ -5998,87 +5998,12 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ID": "SettingsTabTweaks",
|
"ID": "DisableFixOcclusionCulling",
|
||||||
"Translations": {
|
|
||||||
"ar_SA": "باتشات",
|
|
||||||
"de_DE": "Tweaks",
|
|
||||||
"el_GR": "Patches",
|
|
||||||
"en_US": "Tweaks",
|
|
||||||
"es_ES": "Parches",
|
|
||||||
"fr_FR": "Patches",
|
|
||||||
"he_IL": "פאצ'ים",
|
|
||||||
"it_IT": "Tweaks",
|
|
||||||
"ja_JP": "パッチ",
|
|
||||||
"ko_KR": "패치",
|
|
||||||
"no_NO": "Patcher",
|
|
||||||
"pl_PL": "Tweak'i",
|
|
||||||
"pt_BR": "Patches",
|
|
||||||
"ru_RU": "Твики",
|
|
||||||
"sv_SE": "Patcher",
|
|
||||||
"th_TH": "แพตช์",
|
|
||||||
"tr_TR": "Tweaks",
|
|
||||||
"uk_UA": "Твіки",
|
|
||||||
"zh_CN": "补丁",
|
|
||||||
"zh_TW": "補丁"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"ID": "SettingsTabTweaksTitle",
|
|
||||||
"Translations": {
|
|
||||||
"ar_SA": "باتشات: تجارب وتحديثات",
|
|
||||||
"de_DE": "Tweaks: Experimente & Patches",
|
|
||||||
"el_GR": "Patches: Πειράματα & Διορθώσεις",
|
|
||||||
"en_US": "Tweaks: Experiments & Patches",
|
|
||||||
"es_ES": "Parches: Experimentos y Ajustes",
|
|
||||||
"fr_FR": "Patches : Expériences et Corrections",
|
|
||||||
"he_IL": "פאצ'ים: ניסויים ותיקונים",
|
|
||||||
"it_IT": "Tweaks: Esperimenti e Patch",
|
|
||||||
"ja_JP": "パッチ: 実験と修正",
|
|
||||||
"ko_KR": "패치: 실험 및 수정",
|
|
||||||
"no_NO": "Patcher: Eksperimenter og Utbedringer",
|
|
||||||
"pl_PL": "Tweak'i: Eksperymenty i Łatki",
|
|
||||||
"pt_BR": "Patches: Experimentos e Correções",
|
|
||||||
"ru_RU": "Твики: Эксперименты и Патчи",
|
|
||||||
"sv_SE": "Patcher: Experiment och Korrigeringar",
|
|
||||||
"th_TH": "แพตช์: การทดลองและการแก้ไข",
|
|
||||||
"tr_TR": "Tweaks: Deneyler ve Yamalar",
|
|
||||||
"uk_UA": "Твіки: Експерименти та Патчі",
|
|
||||||
"zh_CN": "补丁:实验与修复",
|
|
||||||
"zh_TW": "補丁:實驗與修復"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"ID": "SettingsTabTweaksDescription",
|
|
||||||
"Translations": {
|
|
||||||
"ar_SA": "تحذير! يجب تغيير هذه الخيارات فقط إذا كانت لعبتك لا تعمل بشكل صحيح.",
|
|
||||||
"de_DE": "Warnung! Diese Optionen sollten nur geändert werden, wenn dein Spiel nicht ordnungsgemäß funktioniert.",
|
|
||||||
"el_GR": "Προειδοποίηση! Αυτές οι ρυθμίσεις πρέπει να αλλάξουν μόνο αν το παιχνίδι σας δεν λειτουργεί σωστά.",
|
|
||||||
"en_US": "Warning! These options should only be changed if your game is not working properly.",
|
|
||||||
"es_ES": "Advertencia! Estas opciones deben cambiarse solo si tu juego no funciona correctamente.",
|
|
||||||
"fr_FR": "Avertissement! Ces options doivent être modifiées uniquement si votre jeu ne fonctionne pas correctement.",
|
|
||||||
"he_IL": "אזהרה! יש לשנות את האפשרויות הללו רק אם המשחק שלך לא פועל כראוי.",
|
|
||||||
"it_IT": "Avviso! Queste opzioni devono essere modificate solo se il tuo gioco non funziona correttamente.",
|
|
||||||
"ja_JP": "警告! ゲームが正常に動作しない場合にのみ、これらのオプションを変更してください。",
|
|
||||||
"ko_KR": "경고! 게임이 제대로 작동하지 않으면 이 옵션들을 변경해야 합니다.",
|
|
||||||
"no_NO": "Advarsel! Disse alternativene bør kun endres hvis spillet ditt ikke fungerer som det skal.",
|
|
||||||
"pl_PL": "Ostrzeżenie! Te opcje należy zmienić tylko wtedy, gdy twoja gra nie działa poprawnie.",
|
|
||||||
"pt_BR": "Aviso! Essas opções devem ser alteradas apenas se o seu jogo não estiver funcionando corretamente.",
|
|
||||||
"ru_RU": "Предупреждение! Эти параметры следует изменить только в случае, если ваша игра работает неправильно.",
|
|
||||||
"sv_SE": "Varning! Dessa alternativ bör endast ändras om ditt spel inte fungerar som det ska.",
|
|
||||||
"th_TH": "คำเตือน! ควรเปลี่ยนตัวเลือกเหล่านี้เฉพาะในกรณีที่เกมของคุณทำงานไม่ถูกต้อง.",
|
|
||||||
"tr_TR": "Uyarı! Bu seçenekler, oyununuz düzgün çalışmıyorsa yalnızca değiştirilmelidir.",
|
|
||||||
"uk_UA": "Попередження! Ці налаштування слід змінити лише в тому випадку, якщо ваша гра не працює належним чином.",
|
|
||||||
"zh_CN": "警告! 只有在游戏无法正常运行的情况下,请更改这些选项。",
|
|
||||||
"zh_TW": "警告! 只有當遊戲無法正常運行時,請更改這些選項。"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"ID": "FixOcclusionCulling",
|
|
||||||
"Translations": {
|
"Translations": {
|
||||||
"ar_SA": "",
|
"ar_SA": "",
|
||||||
"de_DE": "",
|
"de_DE": "",
|
||||||
"el_GR": "",
|
"el_GR": "",
|
||||||
"en_US": "Fix Occlusion Culling - flickering of objects.",
|
"en_US": "Disable Fix Occlusion Culling - flickering of objects.",
|
||||||
"es_ES": "",
|
"es_ES": "",
|
||||||
"fr_FR": "",
|
"fr_FR": "",
|
||||||
"he_IL": "",
|
"he_IL": "",
|
||||||
|
@ -6098,7 +6023,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ID": "FixOcclusionCullingTooltip",
|
"ID": "DisableFixOcclusionCullingTooltip",
|
||||||
"Translations": {
|
"Translations": {
|
||||||
"ar_SA": "",
|
"ar_SA": "",
|
||||||
"de_DE": "",
|
"de_DE": "",
|
||||||
|
|
|
@ -165,7 +165,7 @@ namespace Ryujinx.Graphics.Gpu.Engine.Threed
|
||||||
Timestamp = ticks,
|
Timestamp = ticks,
|
||||||
};
|
};
|
||||||
|
|
||||||
if (GraphicsConfig.FixOcclusionCulling && result <= 0)
|
if (!GraphicsConfig.DisableFixOcclusionCulling && result <= 0)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -76,7 +76,7 @@ namespace Ryujinx.Graphics.Gpu
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Enables or disables fix occlusion culling.
|
/// Enables or disables fix occlusion culling.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static bool FixOcclusionCulling = true;
|
public static bool DisableFixOcclusionCulling = true;
|
||||||
}
|
}
|
||||||
#pragma warning restore CA2211
|
#pragma warning restore CA2211
|
||||||
}
|
}
|
||||||
|
|
|
@ -472,7 +472,7 @@ namespace Ryujinx.Ava.Systems.Configuration
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Fixes Occlusion Culling in Games (test feature)
|
/// Fixes Occlusion Culling in Games (test feature)
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool FixOcclusionCulling { get; set; }
|
public bool DisableFixOcclusionCulling { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Loads a configuration file from disk
|
/// Loads a configuration file from disk
|
||||||
|
|
|
@ -156,7 +156,7 @@ namespace Ryujinx.Ava.Systems.Configuration
|
||||||
Multiplayer.LdnPassphrase.Value = cff.MultiplayerLdnPassphrase;
|
Multiplayer.LdnPassphrase.Value = cff.MultiplayerLdnPassphrase;
|
||||||
Multiplayer.LdnServer.Value = cff.LdnServer;
|
Multiplayer.LdnServer.Value = cff.LdnServer;
|
||||||
|
|
||||||
Tweaks.FixOcclusionCulling.Value = cff.FixOcclusionCulling;
|
Tweaks.DisableFixOcclusionCulling.Value = cff.DisableFixOcclusionCulling;
|
||||||
|
|
||||||
{
|
{
|
||||||
Hacks.ShowDirtyHacks.Value = cff.ShowDirtyHacks;
|
Hacks.ShowDirtyHacks.Value = cff.ShowDirtyHacks;
|
||||||
|
@ -464,7 +464,7 @@ namespace Ryujinx.Ava.Systems.Configuration
|
||||||
};
|
};
|
||||||
}),
|
}),
|
||||||
(69, static cff => cff.SkipUserProfiles = false),
|
(69, static cff => cff.SkipUserProfiles = false),
|
||||||
(70, static cff => cff.FixOcclusionCulling = false)
|
(70, static cff => cff.DisableFixOcclusionCulling = false)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -651,10 +651,10 @@ namespace Ryujinx.Ava.Systems.Configuration
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Enable or disable Fix Occlusion Culling
|
/// Enable or disable Fix Occlusion Culling
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public ReactiveObject<bool> FixOcclusionCulling { get; private set; }
|
public ReactiveObject<bool> DisableFixOcclusionCulling { get; private set; }
|
||||||
public TweaksSection()
|
public TweaksSection()
|
||||||
{
|
{
|
||||||
FixOcclusionCulling = new ReactiveObject<bool>();
|
DisableFixOcclusionCulling = new ReactiveObject<bool>();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -147,7 +147,7 @@ namespace Ryujinx.Ava.Systems.Configuration
|
||||||
LdnServer = Multiplayer.LdnServer,
|
LdnServer = Multiplayer.LdnServer,
|
||||||
ShowDirtyHacks = Hacks.ShowDirtyHacks,
|
ShowDirtyHacks = Hacks.ShowDirtyHacks,
|
||||||
DirtyHacks = Hacks.EnabledHacks.Select(it => it.Pack()).ToArray(),
|
DirtyHacks = Hacks.EnabledHacks.Select(it => it.Pack()).ToArray(),
|
||||||
FixOcclusionCulling = Tweaks.FixOcclusionCulling,
|
DisableFixOcclusionCulling = Tweaks.DisableFixOcclusionCulling,
|
||||||
};
|
};
|
||||||
|
|
||||||
return configurationFile;
|
return configurationFile;
|
||||||
|
@ -321,7 +321,7 @@ namespace Ryujinx.Ava.Systems.Configuration
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
Tweaks.FixOcclusionCulling.Value = true;
|
Tweaks.DisableFixOcclusionCulling.Value = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static GraphicsBackend DefaultGraphicsBackend()
|
private static GraphicsBackend DefaultGraphicsBackend()
|
||||||
|
|
|
@ -383,7 +383,7 @@ namespace Ryujinx.Ava.UI.ViewModels
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool FixOcclusionCulling { get; set; }
|
public bool DisableFixOcclusionCulling { get; set; }
|
||||||
|
|
||||||
public SettingsViewModel(
|
public SettingsViewModel(
|
||||||
VirtualFileSystem virtualFileSystem,
|
VirtualFileSystem virtualFileSystem,
|
||||||
|
@ -663,7 +663,7 @@ namespace Ryujinx.Ava.UI.ViewModels
|
||||||
LdnServer = config.Multiplayer.LdnServer;
|
LdnServer = config.Multiplayer.LdnServer;
|
||||||
|
|
||||||
// Tweaks
|
// Tweaks
|
||||||
FixOcclusionCulling = config.Tweaks.FixOcclusionCulling.Value;
|
DisableFixOcclusionCulling = config.Tweaks.DisableFixOcclusionCulling.Value;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void SaveSettings()
|
public void SaveSettings()
|
||||||
|
@ -791,7 +791,7 @@ namespace Ryujinx.Ava.UI.ViewModels
|
||||||
DirtyHacks.NifmDisableIsAnyInternetRequestAccepted;
|
DirtyHacks.NifmDisableIsAnyInternetRequestAccepted;
|
||||||
|
|
||||||
// Tweaks
|
// Tweaks
|
||||||
config.Tweaks.FixOcclusionCulling.Value = FixOcclusionCulling;
|
config.Tweaks.DisableFixOcclusionCulling.Value = DisableFixOcclusionCulling;
|
||||||
|
|
||||||
config.ToFileFormat().SaveConfig(Program.ConfigurationPath);
|
config.ToFileFormat().SaveConfig(Program.ConfigurationPath);
|
||||||
|
|
||||||
|
|
|
@ -4,12 +4,25 @@
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
|
xmlns:ext="clr-namespace:Ryujinx.Ava.Common.Markup"
|
||||||
xmlns:viewModels="clr-namespace:Ryujinx.Ava.UI.ViewModels"
|
xmlns:viewModels="clr-namespace:Ryujinx.Ava.UI.ViewModels"
|
||||||
mc:Ignorable="d"
|
mc:Ignorable="d"
|
||||||
x:DataType="viewModels:SettingsViewModel">
|
x:DataType="viewModels:SettingsViewModel">
|
||||||
<Design.DataContext>
|
<Design.DataContext>
|
||||||
<viewModels:SettingsViewModel />
|
<viewModels:SettingsViewModel />
|
||||||
</Design.DataContext>
|
</Design.DataContext>
|
||||||
|
<UserControl.Styles>
|
||||||
|
<Style Selector="TextBlock.DefaultEnable" >
|
||||||
|
<Setter Property="Foreground" Value="SeaGreen"/>
|
||||||
|
<Setter Property="Margin" Value="5,0,0,0"/>
|
||||||
|
<Setter Property="VerticalAlignment" Value="Center"/>
|
||||||
|
</Style>
|
||||||
|
<Style Selector="TextBlock.DefaultDisable" >
|
||||||
|
<Setter Property="Foreground" Value="IndianRed"/>
|
||||||
|
<Setter Property="Margin" Value="5,0,0,0"/>
|
||||||
|
<Setter Property="VerticalAlignment" Value="Center"/>
|
||||||
|
</Style>
|
||||||
|
</UserControl.Styles>
|
||||||
<ScrollViewer
|
<ScrollViewer
|
||||||
Name="HacksPage"
|
Name="HacksPage"
|
||||||
HorizontalAlignment="Stretch"
|
HorizontalAlignment="Stretch"
|
||||||
|
@ -19,7 +32,6 @@
|
||||||
<Border Classes="settings">
|
<Border Classes="settings">
|
||||||
<StackPanel
|
<StackPanel
|
||||||
Margin="10"
|
Margin="10"
|
||||||
HorizontalAlignment="Center"
|
|
||||||
Orientation="Vertical"
|
Orientation="Vertical"
|
||||||
Spacing="5">
|
Spacing="5">
|
||||||
<TextBlock
|
<TextBlock
|
||||||
|
@ -27,34 +39,32 @@
|
||||||
Classes="h1"
|
Classes="h1"
|
||||||
Text="Dirty Hacks" />
|
Text="Dirty Hacks" />
|
||||||
<TextBlock
|
<TextBlock
|
||||||
|
HorizontalAlignment="Center"
|
||||||
Foreground="{DynamicResource SecondaryTextColor}"
|
Foreground="{DynamicResource SecondaryTextColor}"
|
||||||
TextDecorations="Underline"
|
TextDecorations="Underline"
|
||||||
Text="Highly specific hacks & tricks to alleviate performance issues, crashing, or freezing. Can cause issues." />
|
Text="Highly specific hacks & tricks to alleviate performance issues, crashing, or freezing. Can cause issues." />
|
||||||
<StackPanel
|
<Separator/>
|
||||||
Margin="0,10,0,0"
|
<CheckBox IsChecked="{Binding DirtyHacks.Xc2MenuSoftlockFix}"
|
||||||
Orientation="Horizontal"
|
ToolTip.Tip="{Binding DirtyHacks.Xc2MenuFixTooltip}">
|
||||||
HorizontalAlignment="Center"
|
<StackPanel Orientation="Horizontal">
|
||||||
ToolTip.Tip="{Binding DirtyHacks.Xc2MenuFixTooltip}">
|
<TextBlock Text="Xenoblade Chronicles 2 Menu Softlock Fix" />
|
||||||
<CheckBox
|
<TextBlock Classes="DefaultDisable" Text="Default: disable" />
|
||||||
Margin="0"
|
</StackPanel>
|
||||||
IsChecked="{Binding DirtyHacks.Xc2MenuSoftlockFix}"/>
|
</CheckBox>
|
||||||
<TextBlock
|
<CheckBox IsChecked="{Binding DirtyHacks.NifmDisableIsAnyInternetRequestAccepted}"
|
||||||
VerticalAlignment="Center"
|
|
||||||
Text="Xenoblade Chronicles 2 Menu Softlock Fix" />
|
|
||||||
</StackPanel>
|
|
||||||
<Separator/>
|
|
||||||
<StackPanel
|
|
||||||
Margin="0,10,0,0"
|
|
||||||
Orientation="Horizontal"
|
|
||||||
HorizontalAlignment="Center"
|
|
||||||
ToolTip.Tip="{Binding DirtyHacks.NifmDisableIsAnyInternetRequestAcceptedTooltip}">
|
ToolTip.Tip="{Binding DirtyHacks.NifmDisableIsAnyInternetRequestAcceptedTooltip}">
|
||||||
<CheckBox
|
<StackPanel Orientation="Horizontal">
|
||||||
Margin="0"
|
<TextBlock Text="Disable IsAnyInternetRequestAccepted" />
|
||||||
IsChecked="{Binding DirtyHacks.NifmDisableIsAnyInternetRequestAccepted}"/>
|
<TextBlock Classes="DefaultDisable" Text="Default: disable" />
|
||||||
<TextBlock
|
</StackPanel>
|
||||||
VerticalAlignment="Center"
|
</CheckBox>
|
||||||
Text="Disable IsAnyInternetRequestAccepted" />
|
<CheckBox IsChecked="{Binding DisableFixOcclusionCulling}"
|
||||||
</StackPanel>
|
ToolTip.Tip="{ext:Locale DisableFixOcclusionCullingTooltip}">
|
||||||
|
<StackPanel Orientation="Horizontal">
|
||||||
|
<TextBlock Text="{ext:Locale DisableFixOcclusionCulling}" />
|
||||||
|
<TextBlock Classes="DefaultDisable" Text="Default: disable" />
|
||||||
|
</StackPanel>
|
||||||
|
</CheckBox>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</Border>
|
</Border>
|
||||||
</ScrollViewer>
|
</ScrollViewer>
|
||||||
|
|
|
@ -1,65 +0,0 @@
|
||||||
<UserControl
|
|
||||||
x:Class="Ryujinx.Ava.UI.Views.Settings.SettingsTweaksView"
|
|
||||||
xmlns="https://github.com/avaloniaui"
|
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
||||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
||||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
||||||
xmlns:ext="clr-namespace:Ryujinx.Ava.Common.Markup"
|
|
||||||
xmlns:viewModels="clr-namespace:Ryujinx.Ava.UI.ViewModels"
|
|
||||||
xmlns:helpers="clr-namespace:Ryujinx.Ava.UI.Helpers"
|
|
||||||
mc:Ignorable="d"
|
|
||||||
x:DataType="viewModels:SettingsViewModel"
|
|
||||||
x:CompileBindings="True"
|
|
||||||
Focusable="True">
|
|
||||||
<Design.DataContext>
|
|
||||||
<viewModels:SettingsViewModel />
|
|
||||||
</Design.DataContext>
|
|
||||||
<UserControl.Styles>
|
|
||||||
<Style Selector="TextBlock.DefaultEnable" >
|
|
||||||
<Setter Property="Foreground" Value="SeaGreen"/>
|
|
||||||
<Setter Property="Margin" Value="5,0,0,0"/>
|
|
||||||
<Setter Property="VerticalAlignment" Value="Center"/>
|
|
||||||
</Style>
|
|
||||||
<Style Selector="TextBlock.DefaultDisable" >
|
|
||||||
<Setter Property="Foreground" Value="IndianRed"/>
|
|
||||||
<Setter Property="Margin" Value="5,0,0,0"/>
|
|
||||||
<Setter Property="VerticalAlignment" Value="Center"/>
|
|
||||||
</Style>
|
|
||||||
|
|
||||||
</UserControl.Styles>
|
|
||||||
<ScrollViewer
|
|
||||||
Name="HotkeysPage"
|
|
||||||
HorizontalAlignment="Stretch"
|
|
||||||
VerticalAlignment="Stretch"
|
|
||||||
HorizontalScrollBarVisibility="Disabled"
|
|
||||||
VerticalScrollBarVisibility="Auto">
|
|
||||||
<Border Classes="settings">
|
|
||||||
<StackPanel
|
|
||||||
Name="SettingButtons"
|
|
||||||
Margin="10"
|
|
||||||
Orientation="Vertical"
|
|
||||||
Spacing="10">
|
|
||||||
<TextBlock
|
|
||||||
HorizontalAlignment="Center"
|
|
||||||
Classes="h1"
|
|
||||||
Text="{ext:Locale SettingsTabTweaksTitle}" />
|
|
||||||
<TextBlock
|
|
||||||
HorizontalAlignment="Center"
|
|
||||||
Foreground="{DynamicResource SecondaryTextColor}"
|
|
||||||
TextDecorations="Underline"
|
|
||||||
Text="{ext:Locale SettingsTabTweaksDescription}" />
|
|
||||||
<Separator/>
|
|
||||||
<StackPanel Orientation="Vertical">
|
|
||||||
<CheckBox IsChecked="{Binding FixOcclusionCulling}"
|
|
||||||
ToolTip.Tip="{ext:Locale FixOcclusionCullingTooltip}">
|
|
||||||
<StackPanel Orientation="Horizontal">
|
|
||||||
<TextBlock Text="{ext:Locale FixOcclusionCulling}" />
|
|
||||||
<TextBlock Classes="DefaultEnable" Text="Default: enable" />
|
|
||||||
</StackPanel>
|
|
||||||
</CheckBox>
|
|
||||||
|
|
||||||
</StackPanel>
|
|
||||||
</StackPanel>
|
|
||||||
</Border>
|
|
||||||
</ScrollViewer>
|
|
||||||
</UserControl>
|
|
|
@ -1,12 +0,0 @@
|
||||||
using Avalonia.Controls;
|
|
||||||
|
|
||||||
namespace Ryujinx.Ava.UI.Views.Settings
|
|
||||||
{
|
|
||||||
public partial class SettingsTweaksView : UserControl
|
|
||||||
{
|
|
||||||
public SettingsTweaksView()
|
|
||||||
{
|
|
||||||
InitializeComponent();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -34,7 +34,6 @@
|
||||||
<settings:SettingsSystemView Name="SystemPage" />
|
<settings:SettingsSystemView Name="SystemPage" />
|
||||||
<settings:SettingsCPUView Name="CpuPage" />
|
<settings:SettingsCPUView Name="CpuPage" />
|
||||||
<settings:SettingsGraphicsView Name="GraphicsPage" />
|
<settings:SettingsGraphicsView Name="GraphicsPage" />
|
||||||
<settings:SettingsTweaksView Name="TweaksPage" />
|
|
||||||
<settings:SettingsAudioView Name="AudioPage" />
|
<settings:SettingsAudioView Name="AudioPage" />
|
||||||
<settings:SettingsNetworkView Name="NetworkPage" />
|
<settings:SettingsNetworkView Name="NetworkPage" />
|
||||||
<settings:SettingsLoggingView Name="LoggingPage" />
|
<settings:SettingsLoggingView Name="LoggingPage" />
|
||||||
|
@ -102,10 +101,6 @@
|
||||||
Content="{ext:Locale SettingsTabGraphics}"
|
Content="{ext:Locale SettingsTabGraphics}"
|
||||||
Tag="GraphicsPage"
|
Tag="GraphicsPage"
|
||||||
IconSource="Image" />
|
IconSource="Image" />
|
||||||
<ui:NavigationViewItem
|
|
||||||
Content="{ext:Locale SettingsTabTweaks}"
|
|
||||||
Tag="TweaksPage"
|
|
||||||
IconSource="Repair" />
|
|
||||||
<ui:NavigationViewItem
|
<ui:NavigationViewItem
|
||||||
Content="{ext:Locale SettingsTabAudio}"
|
Content="{ext:Locale SettingsTabAudio}"
|
||||||
IconSource="Audio"
|
IconSource="Audio"
|
||||||
|
|
|
@ -70,9 +70,6 @@ namespace Ryujinx.Ava.UI.Windows
|
||||||
case nameof(GraphicsPage):
|
case nameof(GraphicsPage):
|
||||||
NavPanel.Content = GraphicsPage;
|
NavPanel.Content = GraphicsPage;
|
||||||
break;
|
break;
|
||||||
case nameof(TweaksPage):
|
|
||||||
NavPanel.Content = TweaksPage;
|
|
||||||
break;
|
|
||||||
case nameof(AudioPage):
|
case nameof(AudioPage):
|
||||||
NavPanel.Content = AudioPage;
|
NavPanel.Content = AudioPage;
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -569,7 +569,7 @@ namespace Ryujinx.Ava.UI.Windows
|
||||||
GraphicsConfig.EnableShaderCache = ConfigurationState.Instance.Graphics.EnableShaderCache;
|
GraphicsConfig.EnableShaderCache = ConfigurationState.Instance.Graphics.EnableShaderCache;
|
||||||
GraphicsConfig.EnableTextureRecompression = ConfigurationState.Instance.Graphics.EnableTextureRecompression;
|
GraphicsConfig.EnableTextureRecompression = ConfigurationState.Instance.Graphics.EnableTextureRecompression;
|
||||||
GraphicsConfig.EnableMacroHLE = ConfigurationState.Instance.Graphics.EnableMacroHLE;
|
GraphicsConfig.EnableMacroHLE = ConfigurationState.Instance.Graphics.EnableMacroHLE;
|
||||||
GraphicsConfig.FixOcclusionCulling = ConfigurationState.Instance.Tweaks.FixOcclusionCulling;
|
GraphicsConfig.DisableFixOcclusionCulling = ConfigurationState.Instance.Tweaks.DisableFixOcclusionCulling;
|
||||||
#pragma warning restore IDE0055
|
#pragma warning restore IDE0055
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -43,7 +43,6 @@
|
||||||
<settings:SettingsSystemView Name="SystemPage" />
|
<settings:SettingsSystemView Name="SystemPage" />
|
||||||
<settings:SettingsCPUView Name="CpuPage" />
|
<settings:SettingsCPUView Name="CpuPage" />
|
||||||
<settings:SettingsGraphicsView Name="GraphicsPage" />
|
<settings:SettingsGraphicsView Name="GraphicsPage" />
|
||||||
<settings:SettingsTweaksView Name="TweaksPage" />
|
|
||||||
<settings:SettingsAudioView Name="AudioPage" />
|
<settings:SettingsAudioView Name="AudioPage" />
|
||||||
<settings:SettingsNetworkView Name="NetworkPage" />
|
<settings:SettingsNetworkView Name="NetworkPage" />
|
||||||
<settings:SettingsLoggingView Name="LoggingPage" />
|
<settings:SettingsLoggingView Name="LoggingPage" />
|
||||||
|
@ -89,10 +88,6 @@
|
||||||
Content="{ext:Locale SettingsTabGraphics}"
|
Content="{ext:Locale SettingsTabGraphics}"
|
||||||
Tag="GraphicsPage"
|
Tag="GraphicsPage"
|
||||||
IconSource="Image" />
|
IconSource="Image" />
|
||||||
<ui:NavigationViewItem
|
|
||||||
Content="{ext:Locale SettingsTabTweaks}"
|
|
||||||
Tag="TweaksPage"
|
|
||||||
IconSource="Repair" />
|
|
||||||
<ui:NavigationViewItem
|
<ui:NavigationViewItem
|
||||||
Content="{ext:Locale SettingsTabAudio}"
|
Content="{ext:Locale SettingsTabAudio}"
|
||||||
IconSource="Audio"
|
IconSource="Audio"
|
||||||
|
|
|
@ -88,9 +88,6 @@ namespace Ryujinx.Ava.UI.Windows
|
||||||
case "GraphicsPage":
|
case "GraphicsPage":
|
||||||
NavPanel.Content = GraphicsPage;
|
NavPanel.Content = GraphicsPage;
|
||||||
break;
|
break;
|
||||||
case "TweaksPage":
|
|
||||||
NavPanel.Content = TweaksPage;
|
|
||||||
break;
|
|
||||||
case "AudioPage":
|
case "AudioPage":
|
||||||
NavPanel.Content = AudioPage;
|
NavPanel.Content = AudioPage;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Reference in a new issue