mirror of
https://github.com/MaSzyna-EU07/StarterNG.git
synced 2026-12-02 01:42:41 +01:00
feat(settings): the choice of the simulator and ray tracing in the standard mode
- The exe the start button runs is chosen in a section of its own in General, not only in the developer tab: several builds may sit side by side. - Ray-traced reflections have a row of their own among the details of the picture: off, or Low, Medium, High, Very high, a level being how far the rays reach (gfx.raytracing.range 250, 500, 1000, 2000 m). No level of detail turns them on or off, as they cost far more than anything a level sets; turned off, the reach stays for the next time. A reach no level has is shown as it is and kept. Only Vulkan draws them, so with OpenGL chosen the row is dimmed. - gfx.raytracing.range is in the developer tab too, and the list follows its row.
This commit is contained in:
@@ -262,6 +262,58 @@ public class GraphicsPresetTests
|
||||
Assert.Equal(first, installation.Files.ReadAllText(copy));
|
||||
}
|
||||
|
||||
// ── Ray tracing ──────────────────────────────────────────────────────────
|
||||
|
||||
[Theory]
|
||||
[InlineData("no", "500", RayTracing.Off)]
|
||||
[InlineData("no", "123", RayTracing.Off)]
|
||||
[InlineData("yes", "250", 0)]
|
||||
[InlineData("yes", "500", 1)]
|
||||
[InlineData("yes", "1000", 2)]
|
||||
[InlineData("yes", "2000", 3)]
|
||||
public void Ray_tracing_is_off_or_at_the_level_of_its_reach(string enabled, string range, int level) =>
|
||||
Assert.Equal(level, RayTracing.LevelOf(enabled, range));
|
||||
|
||||
[Fact]
|
||||
public void Ray_tracing_at_a_reach_no_level_has_is_at_none()
|
||||
{
|
||||
Assert.Null(RayTracing.LevelOf("yes", "750"));
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void Ray_tracing_is_off_by_default_and_its_levels_reach_further_one_by_one()
|
||||
{
|
||||
Assert.Equal(RayTracing.Off, RayTracing.LevelOf(Defaults()));
|
||||
var ranges = RayTracing.Levels.Select(level => level.Range).ToList();
|
||||
Assert.Equal(ranges.OrderBy(r => r).Distinct(), ranges);
|
||||
var key = SimulatorKeys.Named(RayTracing.RangeKey);
|
||||
Assert.All(ranges, range => Assert.InRange(range, key.Minimum, key.Maximum));
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void Turned_off_ray_tracing_keeps_its_reach_for_the_next_time()
|
||||
{
|
||||
var settings = Defaults().Copy();
|
||||
RayTracing.Apply(settings, 3);
|
||||
RayTracing.Apply(settings, RayTracing.Off);
|
||||
|
||||
Assert.Equal("no", settings.Extra[RayTracing.Key]);
|
||||
Assert.Equal("2000", settings.Extra[RayTracing.RangeKey]);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void No_level_of_detail_turns_ray_tracing_on_or_off()
|
||||
{
|
||||
foreach (var preset in GraphicsPreset.All)
|
||||
{
|
||||
var settings = Defaults().Copy();
|
||||
RayTracing.Apply(settings, 2);
|
||||
preset.ApplyTo(settings);
|
||||
Assert.Equal(2, RayTracing.LevelOf(settings));
|
||||
Assert.Same(preset, GraphicsPreset.Matching(settings));
|
||||
}
|
||||
}
|
||||
|
||||
// ── A level for one part ─────────────────────────────────────────────────
|
||||
|
||||
private static GraphicsGroupLevels Groups() => new(new TestInstallation().SettingsStore);
|
||||
|
||||
@@ -47,6 +47,10 @@ public class SettingsUnknownValueTests
|
||||
|
||||
private static string? Shown(ComboBox list) => (list.SelectedItem as ComboBoxItem)?.Content as string;
|
||||
|
||||
private static SettingRow Row(StarterNG.Views.Settings page, string key) =>
|
||||
Avalonia.LogicalTree.LogicalExtensions.GetLogicalDescendants(page).OfType<SettingRow>()
|
||||
.First(row => row.ConfigKey == key);
|
||||
|
||||
private static string? Note(StarterNG.Views.Settings page, string key) =>
|
||||
Avalonia.LogicalTree.LogicalExtensions.GetLogicalDescendants(page).OfType<SettingRow>()
|
||||
.First(row => row.ConfigKey == key).UnknownValue;
|
||||
@@ -66,6 +70,53 @@ public class SettingsUnknownValueTests
|
||||
});
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void The_standard_mode_has_the_choice_of_the_simulator_and_of_ray_tracing_but_not_of_the_renderer()
|
||||
{
|
||||
WithPage(Standard, (page, _, _) =>
|
||||
{
|
||||
Assert.True(Row(page, "starter.exe.path").IsEffectivelyVisible);
|
||||
Assert.True(Row(page, "gfx.raytracing, gfx.raytracing.range").IsVisible);
|
||||
Assert.False(Row(page, "gfxrenderer").IsVisible);
|
||||
});
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void A_level_of_ray_tracing_picked_is_saved_as_its_reach()
|
||||
{
|
||||
WithPage(Standard, (page, services, saved) =>
|
||||
{
|
||||
var list = List(page, "RayTracingCb");
|
||||
Assert.Equal(App.Loc["RayTracingOff"], Shown(list));
|
||||
|
||||
list.SelectedIndex = 3;
|
||||
page.Save();
|
||||
|
||||
Assert.Contains("gfx.raytracing yes\n", saved());
|
||||
Assert.Contains("gfx.raytracing.range 1000\n", saved());
|
||||
|
||||
list.SelectedIndex = 0;
|
||||
page.Save();
|
||||
|
||||
Assert.Contains("gfx.raytracing no\n", saved());
|
||||
Assert.Contains("gfx.raytracing.range 1000\n", saved());
|
||||
});
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void A_reach_of_ray_tracing_no_level_has_is_shown_as_it_is_and_kept()
|
||||
{
|
||||
WithPage(Standard + "gfx.raytracing yes\ngfx.raytracing.range 750\n", (page, _, saved) =>
|
||||
{
|
||||
Assert.Contains("750", Shown(List(page, "RayTracingCb")));
|
||||
Assert.False(page.HasUnsavedChanges);
|
||||
|
||||
page.Save();
|
||||
|
||||
Assert.Contains("gfx.raytracing.range 750\n", saved());
|
||||
});
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void Another_renderer_picked_from_the_list_replaces_it()
|
||||
{
|
||||
|
||||
@@ -0,0 +1,61 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace StarterNG.Domain.Settings;
|
||||
|
||||
/// <summary>
|
||||
/// The ray-traced reflections as the standard mode offers them: off, or on at one of four levels, a level being how
|
||||
/// far the rays reach (gfx.raytracing.range). Only the Vulkan renderer on a card with ray queries draws them. No
|
||||
/// level of detail turns them on or off: they cost far more than anything a level sets, so they are the player's
|
||||
/// own choice.
|
||||
/// </summary>
|
||||
public static class RayTracing
|
||||
{
|
||||
public const string Key = "gfx.raytracing";
|
||||
|
||||
public const string RangeKey = "gfx.raytracing.range";
|
||||
|
||||
/// <summary>The levels, as the other parts of the picture name theirs, and the reach of each in metres.</summary>
|
||||
public static readonly IReadOnlyList<(string NameKey, int Range)> Levels = new[]
|
||||
{
|
||||
("PresetLow", 250), ("PresetMedium", 500), ("PresetHigh", 1000), ("PresetVeryHigh", 2000)
|
||||
};
|
||||
|
||||
/// <summary>Off.</summary>
|
||||
public const int Off = -1;
|
||||
|
||||
/// <summary>
|
||||
/// Where <paramref name="s"/> stands: <see cref="Off"/>, the index of its level, or null for a reach none of
|
||||
/// them has.
|
||||
/// </summary>
|
||||
public static int? LevelOf(SimulatorSettings s) => LevelOf(SimulatorKeys.Named(Key).RawIn(s), SimulatorKeys.Named(RangeKey).RawIn(s));
|
||||
|
||||
/// <summary>The level of the two keys as the file writes them.</summary>
|
||||
public static int? LevelOf(string enabled, string range)
|
||||
{
|
||||
if (!SimulatorKey.ParseToggle(enabled))
|
||||
return Off;
|
||||
double metres = SimulatorKeys.Named(RangeKey).ParseNumber(range);
|
||||
for (int i = 0; i < Levels.Count; i++)
|
||||
if (Math.Abs(Levels[i].Range - metres) < 0.5)
|
||||
return i;
|
||||
return null;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The two keys at <paramref name="level"/>, in the file's words. Off leaves the reach as it is, for the next
|
||||
/// time they are turned on.
|
||||
/// </summary>
|
||||
public static (string Enabled, string? Range) ValuesOf(int level) =>
|
||||
level == Off
|
||||
? (SimulatorKey.FormatToggle(false), null)
|
||||
: (SimulatorKey.FormatToggle(true), Levels[level].Range.ToString(System.Globalization.CultureInfo.InvariantCulture));
|
||||
|
||||
public static void Apply(SimulatorSettings s, int level)
|
||||
{
|
||||
var (enabled, range) = ValuesOf(level);
|
||||
s.Extra[Key] = enabled;
|
||||
if (range is not null)
|
||||
s.Extra[RangeKey] = range;
|
||||
}
|
||||
}
|
||||
@@ -157,6 +157,7 @@ public static class SimulatorKeys
|
||||
Toggle("gfx.shadow.sdsm", false, Advanced, QualitySection),
|
||||
Choice("gfx.ssr", "medium", QualitySection),
|
||||
Toggle("gfx.raytracing", false, Advanced, QualitySection),
|
||||
Number("gfx.raytracing.range", 500, Advanced, QualitySection, 10, 5000, 10, " m"),
|
||||
Choice("gfx.cabprobe", "medium", QualitySection),
|
||||
Toggle("gfx.water.realistic", false, Advanced, QualitySection),
|
||||
Choice("gfx.postfx.ao", "gtao", QualitySection, new[] { "no", "ssao", "gtao" }),
|
||||
|
||||
@@ -144,6 +144,21 @@
|
||||
</StackPanel>
|
||||
</ctl:SettingsSection>
|
||||
|
||||
<!-- Which simulator the start button runs: several builds can sit side by side. -->
|
||||
<ctl:SettingsSection Header="{Binding [SimulatorSection], Source={x:Static starterNg:App.Loc}}">
|
||||
<StackPanel>
|
||||
<ctl:SettingRow ConfigKey="starter.exe.path" Label="{Binding [SelectEXE], Source={x:Static starterNg:App.Loc}}"
|
||||
Description="{Binding [SelectEXEDesc], Source={x:Static starterNg:App.Loc}}">
|
||||
<Grid ColumnDefinitions="*,Auto" ColumnSpacing="6">
|
||||
<ComboBox x:Name="SelectExeCb" Classes="Localized" SelectedIndex="0" HorizontalAlignment="Stretch" />
|
||||
<Button x:Name="BrowseExeButton" Grid.Column="1" Classes="Flat" Cursor="Hand"
|
||||
Click="BrowseExeButton_OnClick"
|
||||
Content="{Binding [SelectEXEBrowse], Source={x:Static starterNg:App.Loc}}" />
|
||||
</Grid>
|
||||
</ctl:SettingRow>
|
||||
</StackPanel>
|
||||
</ctl:SettingsSection>
|
||||
|
||||
<ctl:SettingsSection Header="{Binding [MouseSection], Source={x:Static starterNg:App.Loc}}">
|
||||
<StackPanel>
|
||||
<ctl:SettingRow ConfigKey="mousescale" x:Name="CursorSensitivityRow"
|
||||
@@ -271,6 +286,12 @@
|
||||
ConfigKey="gfx.envmap.enabled, gfx.reflections.fidelity, gfx.reflections.framerate, gfx.ssr, gfx.cabprobe">
|
||||
<ComboBox x:Name="GroupReflectionsCb" />
|
||||
</ctl:SettingRow>
|
||||
<!-- Its own choice: no level turns it on, a level of it is how far the rays reach. -->
|
||||
<ctl:SettingRow x:Name="RayTracingRow" Label="{Binding [RayTracing], Source={x:Static starterNg:App.Loc}}"
|
||||
Description="{Binding [RayTracingDesc], Source={x:Static starterNg:App.Loc}}"
|
||||
ConfigKey="gfx.raytracing, gfx.raytracing.range">
|
||||
<ComboBox x:Name="RayTracingCb" />
|
||||
</ctl:SettingRow>
|
||||
<ctl:SettingRow x:Name="GroupLightingRow" Label="{Binding [GroupLighting], Source={x:Static starterNg:App.Loc}}"
|
||||
Description="{Binding [GroupLightingDesc], Source={x:Static starterNg:App.Loc}}"
|
||||
ConfigKey="gfx.postfx.ao, gfx.fog.quality, gfx.clouds">
|
||||
@@ -608,6 +629,7 @@
|
||||
</StackPanel>
|
||||
<ctl:KeySlot Key="gfx.ssr" />
|
||||
<ctl:KeySlot Key="gfx.raytracing" />
|
||||
<ctl:KeySlot Key="gfx.raytracing.range" />
|
||||
<ctl:KeySlot Key="gfx.cabprobe" />
|
||||
<ctl:KeySlot Key="gfx.water.realistic" />
|
||||
</StackPanel>
|
||||
@@ -739,14 +761,6 @@
|
||||
<ctl:SettingRow Description="{Binding [DisplaySimulationDesc], Source={x:Static starterNg:App.Loc}}" ConfigKey="gfx.skiprendering">
|
||||
<CheckBox x:Name="DisplaySimulationCb" Content="{Binding [DisplaySimulation], Source={x:Static starterNg:App.Loc}}" />
|
||||
</ctl:SettingRow>
|
||||
<ctl:SettingRow ConfigKey="starter.exe.path" Label="{Binding [SelectEXE], Source={x:Static starterNg:App.Loc}}">
|
||||
<Grid ColumnDefinitions="*,Auto" ColumnSpacing="6">
|
||||
<ComboBox x:Name="SelectExeCb" Classes="Localized" SelectedIndex="0" HorizontalAlignment="Stretch" />
|
||||
<Button x:Name="BrowseExeButton" Grid.Column="1" Classes="Flat" Cursor="Hand"
|
||||
Click="BrowseExeButton_OnClick"
|
||||
Content="{Binding [SelectEXEBrowse], Source={x:Static starterNg:App.Loc}}" />
|
||||
</Grid>
|
||||
</ctl:SettingRow>
|
||||
</StackPanel>
|
||||
</ctl:SettingsSection>
|
||||
|
||||
|
||||
@@ -100,6 +100,7 @@ public partial class Settings : UserControl, ISettingsCapture
|
||||
_keyRows.Changed += MarkDirty;
|
||||
_keyRows.Changed += QueuePresetMarks;
|
||||
BuildPresetButtons();
|
||||
BuildRayTracing();
|
||||
BuildMonitorRates();
|
||||
ReadGraphicsCards();
|
||||
App.Loc.LanguageChanged += UpdateCardText;
|
||||
@@ -403,6 +404,7 @@ public partial class Settings : UserControl, ISettingsCapture
|
||||
SelectActiveLanguage();
|
||||
ShowValues(s);
|
||||
_keyRows.Apply(s);
|
||||
ShowRayTracing();
|
||||
}
|
||||
finally
|
||||
{
|
||||
@@ -694,6 +696,86 @@ public partial class Settings : UserControl, ISettingsCapture
|
||||
_markingLevels = false;
|
||||
}
|
||||
|
||||
// ── The ray-traced reflections ───────────────────────────────────────────
|
||||
|
||||
/// <summary>The list's item for a reach none of the levels has, while the rows have one.</summary>
|
||||
private ComboBoxItem? _rayTracingCustom;
|
||||
|
||||
// Set while the list follows the rows, which is no choice of the player's to pass on.
|
||||
private bool _showingRayTracing;
|
||||
|
||||
private void BuildRayTracing()
|
||||
{
|
||||
RayTracingCb.Items.Add(new ComboBoxItem { Tag = RayTracing.Off });
|
||||
for (int level = 0; level < RayTracing.Levels.Count; level++)
|
||||
RayTracingCb.Items.Add(new ComboBoxItem { Tag = level });
|
||||
UpdateRayTracingTexts();
|
||||
App.Loc.LanguageChanged += UpdateRayTracingTexts;
|
||||
|
||||
RayTracingCb.SelectionChanged += (_, _) =>
|
||||
{
|
||||
if (_showingRayTracing || RayTracingCb.SelectedItem is not ComboBoxItem { Tag: int level })
|
||||
return;
|
||||
var (enabled, range) = RayTracing.ValuesOf(level);
|
||||
_keyRows.Show(RayTracing.Key, enabled);
|
||||
if (range is not null)
|
||||
_keyRows.Show(RayTracing.RangeKey, range);
|
||||
ShowRayTracing();
|
||||
};
|
||||
// Moved in the developer tab, or put back at its default: the list follows.
|
||||
_keyRows.Moved += key =>
|
||||
{
|
||||
if (key.Key is RayTracing.Key or RayTracing.RangeKey)
|
||||
ShowRayTracing();
|
||||
};
|
||||
}
|
||||
|
||||
private void UpdateRayTracingTexts()
|
||||
{
|
||||
foreach (var item in RayTracingCb.Items.OfType<ComboBoxItem>())
|
||||
if (item.Tag is int level)
|
||||
item.Content = App.Loc[level == RayTracing.Off ? "RayTracingOff" : RayTracing.Levels[level].NameKey];
|
||||
ShowRayTracing();
|
||||
}
|
||||
|
||||
/// <summary>The list at the level the two rows are at, or at an item of their own reach where it is none.</summary>
|
||||
private void ShowRayTracing()
|
||||
{
|
||||
if (!_built)
|
||||
return;
|
||||
string enabled = _keyRows.ValueOf(RayTracing.Key) ?? SimulatorKey.FormatToggle(false);
|
||||
string range = _keyRows.ValueOf(RayTracing.RangeKey) ?? SimulatorKeys.Named(RayTracing.RangeKey).Default;
|
||||
int? level = RayTracing.LevelOf(enabled, range);
|
||||
|
||||
_showingRayTracing = true;
|
||||
try
|
||||
{
|
||||
if (level is { } known)
|
||||
{
|
||||
if (_rayTracingCustom is not null)
|
||||
{
|
||||
RayTracingCb.Items.Remove(_rayTracingCustom);
|
||||
_rayTracingCustom = null;
|
||||
}
|
||||
RayTracingCb.SelectedItem = RayTracingCb.Items.OfType<ComboBoxItem>()
|
||||
.FirstOrDefault(item => item.Tag is int tag && tag == known);
|
||||
return;
|
||||
}
|
||||
|
||||
if (_rayTracingCustom is null)
|
||||
{
|
||||
_rayTracingCustom = new ComboBoxItem { Tag = "custom" };
|
||||
RayTracingCb.Items.Add(_rayTracingCustom);
|
||||
}
|
||||
_rayTracingCustom.Content = $"{App.Loc["PresetCustom"]} ({range} m)";
|
||||
RayTracingCb.SelectedItem = _rayTracingCustom;
|
||||
}
|
||||
finally
|
||||
{
|
||||
_showingRayTracing = false;
|
||||
}
|
||||
}
|
||||
|
||||
// ── The player's graphics card, beside the levels ────────────────────────
|
||||
|
||||
private IReadOnlyList<GraphicsCard> _cards = Array.Empty<GraphicsCard>();
|
||||
@@ -867,6 +949,7 @@ public partial class Settings : UserControl, ISettingsCapture
|
||||
shutter.IsEnabled = IsChecked(MotionBlurCb);
|
||||
ReflectionRows.IsEnabled = IsChecked(ReflectionsCubeMapCb);
|
||||
bool vulkan = SelectedBackend() == GraphicsBackend.Vulkan;
|
||||
RayTracingRow.IsEnabled = vulkan;
|
||||
foreach (string key in VulkanOnlyKeys)
|
||||
if (_keyRows.RowOf(key) is { } row)
|
||||
row.IsEnabled = vulkan;
|
||||
@@ -877,7 +960,7 @@ public partial class Settings : UserControl, ISettingsCapture
|
||||
{
|
||||
"gfx.vulkan.device", "gfx.vulkan.renderthread", "gfx.threads", "gfx.vulkan.asyncresources",
|
||||
"gfx.vulkan.parallelpasses", "gfx.vulkan.parallelmodels", "gfx.vulkan.asynccompute",
|
||||
"gfx.vulkan.framesinflight", "gfx.raytracing", "gfx.dlss.preset", "gfx.framegeneration", "gfx.reflex",
|
||||
"gfx.vulkan.framesinflight", "gfx.raytracing", "gfx.raytracing.range", "gfx.dlss.preset", "gfx.framegeneration", "gfx.reflex",
|
||||
"gfx.weather.occlusion", "gfx.clouds.interleave"
|
||||
};
|
||||
|
||||
@@ -1803,7 +1886,9 @@ public partial class Settings : UserControl, ISettingsCapture
|
||||
// Choosing a profile changes nothing until Apply is pressed, and a
|
||||
// language is saved the moment it is picked.
|
||||
case ComboBox combo when ReferenceEquals(combo, ProfileCb) ||
|
||||
ReferenceEquals(combo, ChangeLanguageCb):
|
||||
ReferenceEquals(combo, ChangeLanguageCb) ||
|
||||
// the ray tracing's list sets its two rows, which tell of their changes
|
||||
ReferenceEquals(combo, RayTracingCb):
|
||||
break;
|
||||
// The rows of SimulatorKeyRows report their own changes, and the lists of the parts put their
|
||||
// levels on the screen as edits themselves.
|
||||
|
||||
@@ -141,6 +141,9 @@ internal sealed class SimulatorKeyRows
|
||||
Changed?.Invoke();
|
||||
}
|
||||
|
||||
/// <summary>What the row of <paramref name="key"/> holds now, in the file's words; null for a key with no row.</summary>
|
||||
public string? ValueOf(string key) => Find(key) is { } row ? Current(row) : null;
|
||||
|
||||
/// <summary>The row of <paramref name="key"/>, wherever it was put.</summary>
|
||||
public SettingRow? RowOf(string key) => Find(key)?.Setting;
|
||||
|
||||
|
||||
@@ -954,4 +954,7 @@
|
||||
<String key="REOpenGL">OpenGL 4.6</String>
|
||||
<String key="IniSectionRenderer">Renderer</String>
|
||||
<String key="IniSectionPerformance">Výkon</String>
|
||||
<String key="SimulatorSection">Simulátor</String>
|
||||
<String key="RayTracing">Ray tracing (odrazy)</String>
|
||||
<String key="RayTracingOff">Vypnuto</String>
|
||||
</Language>
|
||||
|
||||
@@ -1252,4 +1252,9 @@
|
||||
<String key="Choice.on">On</String>
|
||||
<String key="Choice.boost">Boost</String>
|
||||
<String key="Choice.default">Default</String>
|
||||
<String key="SimulatorSection">Simulator</String>
|
||||
<String key="RayTracing">Ray tracing (reflections)</String>
|
||||
<String key="RayTracingOff">Off</String>
|
||||
<String key="RayTracingDesc">Ray-traced reflections: more exact, but costly. Vulkan and a card with ray tracing only (NVIDIA RTX, AMD RX 6000 and newer). The level is how far the rays reach; no level of detail turns them on.</String>
|
||||
<String key="SelectEXEDesc">Automatic picks the build that runs on this processor. Choose another only when several builds are installed.</String>
|
||||
</Language>
|
||||
|
||||
@@ -954,4 +954,7 @@
|
||||
<String key="REOpenGL">OpenGL 4.6</String>
|
||||
<String key="IniSectionRenderer">Renderelő</String>
|
||||
<String key="IniSectionPerformance">Teljesítmény</String>
|
||||
<String key="SimulatorSection">Szimulátor</String>
|
||||
<String key="RayTracing">Sugárkövetés (tükröződések)</String>
|
||||
<String key="RayTracingOff">Ki</String>
|
||||
</Language>
|
||||
|
||||
@@ -1074,4 +1074,9 @@
|
||||
<String key="Choice.on">Włączone</String>
|
||||
<String key="Choice.boost">Boost</String>
|
||||
<String key="Choice.default">Domyślny</String>
|
||||
<String key="SimulatorSection">Symulator</String>
|
||||
<String key="RayTracing">Ray tracing (odbicia)</String>
|
||||
<String key="RayTracingOff">Wyłączony</String>
|
||||
<String key="RayTracingDesc">Odbicia liczone ray tracingiem: dokładniejsze, ale kosztowne. Tylko Vulkan i karta z ray tracingiem (NVIDIA RTX, AMD RX 6000 i nowsze). Poziom to zasięg promieni; poziomy jakości grafiki go nie włączają.</String>
|
||||
<String key="SelectEXEDesc">Automatycznie wybiera wersję, która działa na tym procesorze. Wybierz inną tylko wtedy, gdy masz zainstalowanych kilka wersji.</String>
|
||||
</Language>
|
||||
|
||||
@@ -954,4 +954,7 @@
|
||||
<String key="REOpenGL">OpenGL 4.6</String>
|
||||
<String key="IniSectionRenderer">Рендерер</String>
|
||||
<String key="IniSectionPerformance">Производительность</String>
|
||||
<String key="SimulatorSection">Симулятор</String>
|
||||
<String key="RayTracing">Трассировка лучей (отражения)</String>
|
||||
<String key="RayTracingOff">Выкл.</String>
|
||||
</Language>
|
||||
|
||||
@@ -1090,7 +1090,7 @@
|
||||
<String key="FrameGenerationDesc">在已绘制的帧之间插入额外帧。仅配合 DLSS 或 DLAA。x3 和 x4 需要 RTX 50 显卡。</String>
|
||||
<String key="Reflex">NVIDIA Reflex</String>
|
||||
<String key="ReflexDesc">减少操作与画面之间的延迟。</String>
|
||||
<String key="RayTracing">光线追踪反射</String>
|
||||
<String key="RayTracing">光线追踪(反射)</String>
|
||||
<String key="RayTracingDesc">在 SSR 找不到信息的地方补全反射。显卡需支持 ray query。</String>
|
||||
<String key="RayTracingRange">光线追踪范围</String>
|
||||
<String key="VulkanDevice">显卡(Vulkan)</String>
|
||||
@@ -1203,4 +1203,6 @@
|
||||
<String key="IniSectionPerformance">性能</String>
|
||||
<String key="AdvancedModeWarning">高级模式面向开发者和测试人员。它会打开“开发者”选项卡,其中包含模拟器的全部设置:渲染器(用 OpenGL 代替 Vulkan)、画面细节、各项优化开关、日志和诊断。修改其中许多设置后,模拟器可能无法启动、变慢或不稳定,或者画面变差。它还允许更改编组的乘务人员、AI 编组和装饰物,因此场景可能无法按作者的设计运行。 这些设置引起的问题不是模拟器的错误:报告错误之前,请关闭高级模式,这会把“开发者”选项卡中的所有内容恢复为启动器自带的值。 请仔细阅读。开启按钮将在 20 秒后可用。</String>
|
||||
<String key="AdvancedModeOffConfirm">关闭高级模式会把“开发者”选项卡中的所有内容恢复为启动器自带的值(Vulkan,所有优化开启),并保存本页的设置。画质保持“图形”选项卡中显示的样子。要关闭吗?</String>
|
||||
<String key="SimulatorSection">模拟器</String>
|
||||
<String key="RayTracingOff">关闭</String>
|
||||
</Language>
|
||||
|
||||
Reference in New Issue
Block a user