mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-21 10:01:27 -07:00
Remove FastFlag preset for setting MSAA
This commit is contained in:
parent
db92b80e4c
commit
81cdede240
@ -25,7 +25,6 @@ namespace Bloxstrap
|
|||||||
{ "Rendering.ManualFullscreen", "FFlagHandleAltEnterFullscreenManually" },
|
{ "Rendering.ManualFullscreen", "FFlagHandleAltEnterFullscreenManually" },
|
||||||
{ "Rendering.TexturePack", "FStringPartTexturePackTable2022" },
|
{ "Rendering.TexturePack", "FStringPartTexturePackTable2022" },
|
||||||
{ "Rendering.DisableScaling", "DFFlagDisableDPIScale" },
|
{ "Rendering.DisableScaling", "DFFlagDisableDPIScale" },
|
||||||
{ "Rendering.MSAA", "FIntDebugForceMSAASamples" },
|
|
||||||
|
|
||||||
{ "Rendering.Mode.D3D11", "FFlagDebugGraphicsPreferD3D11" },
|
{ "Rendering.Mode.D3D11", "FFlagDebugGraphicsPreferD3D11" },
|
||||||
{ "Rendering.Mode.D3D10", "FFlagDebugGraphicsPreferD3D11FL10" },
|
{ "Rendering.Mode.D3D10", "FFlagDebugGraphicsPreferD3D11FL10" },
|
||||||
|
@ -199,11 +199,19 @@ namespace Bloxstrap
|
|||||||
|
|
||||||
// update migrations
|
// update migrations
|
||||||
|
|
||||||
if (App.BuildMetadata.CommitRef.StartsWith("tag") && existingVersionInfo.ProductVersion == "2.4.0")
|
if (App.BuildMetadata.CommitRef.StartsWith("tag"))
|
||||||
{
|
{
|
||||||
App.FastFlags.SetValue("DFFlagDisableDPIScale", null);
|
if (existingVersionInfo.ProductVersion == "2.4.0")
|
||||||
App.FastFlags.SetValue("DFFlagVariableDPIScale2", null);
|
{
|
||||||
App.FastFlags.Save();
|
App.FastFlags.SetValue("DFFlagDisableDPIScale", null);
|
||||||
|
App.FastFlags.SetValue("DFFlagVariableDPIScale2", null);
|
||||||
|
App.FastFlags.Save();
|
||||||
|
}
|
||||||
|
else if (existingVersionInfo.ProductVersion == "2.5.0")
|
||||||
|
{
|
||||||
|
App.FastFlags.SetValue("FIntDebugForceMSAASamples", null);
|
||||||
|
App.FastFlags.Save();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isAutoUpgrade)
|
if (isAutoUpgrade)
|
||||||
|
@ -171,15 +171,6 @@
|
|||||||
</ui:CardControl.Header>
|
</ui:CardControl.Header>
|
||||||
<ComboBox Margin="5,0,0,0" Padding="10,5,10,5" Width="200" ItemsSource="{Binding RenderingModes.Keys, Mode=OneTime}" Text="{Binding SelectedRenderingMode, Mode=TwoWay}" />
|
<ComboBox Margin="5,0,0,0" Padding="10,5,10,5" Width="200" ItemsSource="{Binding RenderingModes.Keys, Mode=OneTime}" Text="{Binding SelectedRenderingMode, Mode=TwoWay}" />
|
||||||
</ui:CardControl>
|
</ui:CardControl>
|
||||||
<ui:CardControl Margin="0,8,0,0">
|
|
||||||
<ui:CardControl.Header>
|
|
||||||
<StackPanel>
|
|
||||||
<TextBlock FontSize="14" Text="Antialiasing quality" />
|
|
||||||
<TextBlock Margin="0,2,0,0" FontSize="12" Text="Forces the amount of MSAA samples that are taken." Foreground="{DynamicResource TextFillColorTertiaryBrush}" />
|
|
||||||
</StackPanel>
|
|
||||||
</ui:CardControl.Header>
|
|
||||||
<ComboBox Margin="5,0,0,0" Padding="10,5,10,5" Width="200" ItemsSource="{Binding MSAAModes.Keys, Mode=OneTime}" Text="{Binding SelectedMSAAMode, Mode=TwoWay}" />
|
|
||||||
</ui:CardControl>
|
|
||||||
<ui:CardControl Margin="0,8,0,0">
|
<ui:CardControl Margin="0,8,0,0">
|
||||||
<ui:CardControl.Header>
|
<ui:CardControl.Header>
|
||||||
<StackPanel>
|
<StackPanel>
|
||||||
|
@ -127,14 +127,6 @@ namespace Bloxstrap.UI.ViewModels.Menu
|
|||||||
set => App.FastFlags.SetPresetEnum("Rendering.Lighting", LightingModes[value], "True");
|
set => App.FastFlags.SetPresetEnum("Rendering.Lighting", LightingModes[value], "True");
|
||||||
}
|
}
|
||||||
|
|
||||||
public IReadOnlyDictionary<string, string?> MSAAModes => FastFlagManager.MSAAModes;
|
|
||||||
|
|
||||||
public string SelectedMSAAMode
|
|
||||||
{
|
|
||||||
get => MSAAModes.First(x => x.Value == App.FastFlags.GetPreset("Rendering.MSAA")).Key ?? MSAAModes.First().Key;
|
|
||||||
set => App.FastFlags.SetPreset("Rendering.MSAA", MSAAModes[value]);
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool GuiHidingEnabled
|
public bool GuiHidingEnabled
|
||||||
{
|
{
|
||||||
get => App.FastFlags.GetPreset("UI.Hide") == "32380007";
|
get => App.FastFlags.GetPreset("UI.Hide") == "32380007";
|
||||||
|
Loading…
Reference in New Issue
Block a user