Skip to content

Commit d249deb

Browse files
author
Chris Jakeman
committed
Removes some redundant experimental options
Load DDS textures in preference to ACE is now always true. Adhesion is now always reduced by rain/snow/fog. Precipitation Box values are hidden awaiting any user feedback.
1 parent c204d0a commit d249deb

File tree

7 files changed

+22
-79
lines changed

7 files changed

+22
-79
lines changed

Source/Documentation/Manual/options.rst

Lines changed: 10 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -668,15 +668,6 @@ lat/lon rectangle corresponding to the arid zone of North America (lat from
668668
The randomization is not performed either if the activity contains weather
669669
change events.
670670

671-
.. _options-dds-textures:
672-
673-
Load DDS textures in preference to ACE
674-
--------------------------------------
675-
676-
Open Rails is capable of loading both ACE and DDS textures. If only one of
677-
the two is present, it is loaded. If both are present, the ACE texture is
678-
loaded unless this option has been selected.
679-
680671

681672
MSTS Environments
682673
-----------------
@@ -688,12 +679,6 @@ With this option selected, ORTS applies the MSTS environment files. This
688679
includes support of Kosmos environments, even if the final effect may be
689680
different from the current MSTS one.
690681

691-
Adhesion factor correction
692-
--------------------------
693-
694-
The adhesion is multiplied by this percentage factor. Therefore lower
695-
values of the slider reduce adhesion and cause more frequent wheel slips
696-
and therefore a more difficult, but more challenging driving experience.
697682

698683
Level of detail bias
699684
--------------------
@@ -720,37 +705,21 @@ Note: If your content does not use multiple LODs, then this option will have no
720705
Adhesion proportional to rain/snow/fog
721706
--------------------------------------
722707

723-
When this option is selected, adhesion becomes dependent on the intensity
708+
Adhesion is dependent on the intensity
724709
of rain and snow and the density of fog. Intensities and density can be
725710
modified at runtime by the player.
726711

712+
713+
Adhesion factor correction
714+
--------------------------
715+
716+
The adhesion is multiplied by this percentage factor. Therefore lower
717+
values of the slider reduce adhesion and cause more frequent wheel slips
718+
and therefore a more difficult, but more challenging driving experience.
719+
720+
727721
Adhesion factor random change
728722
-----------------------------
729723

730724
This factor randomizes the adhesion factor corrector by the entered
731725
percentage. The higher the value, the higher the adhesion variations.
732-
733-
Precipitation Box Size
734-
----------------------
735-
736-
Open Rails will simulate precipitation -- i.e. rain or snow, as falling
737-
individual particles. This represents a significant computing and display
738-
system load, especially for systems with limited resources. Therefore, the
739-
region in which the precipitation particles are visible, the
740-
*Precipitation Box*, is limited in size and moves with the camera. The
741-
size of the box can be set by the entries in the height, width and length
742-
boxes. The X and Z values are centered on the camera location, and falling
743-
particles *spawn* and fall from the top of the box.
744-
745-
The max size for both length and width is 3000 meters or 9,842ft. Due to possibe
746-
resource issues, the ability to use max length and width may not be possible. The
747-
best way to use the precipitation box is to define a square around your entire train
748-
if small enough or around most of your train. Keep track on how your resources are
749-
being used since snow will take up the most resources so you will have to adjust the
750-
size until you are satisified with the results.
751-
752-
The reason for defining a square around your train is to minimize the moments when your train
753-
is approaching the edge of the precipitation box. Worst case is to save the activity,
754-
exit and re-enter the activity since doing this will set your train back in the middle of the
755-
precipitation box.
756-

Source/Menu/Options.Designer.cs

Lines changed: 6 additions & 27 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Source/Menu/Options.cs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -314,11 +314,9 @@ orderby folder.Key
314314
trackLODBias.Value = Settings.LODBias;
315315
trackLODBias_ValueChanged(null, null);
316316
checkSignalLightGlow.Checked = Settings.SignalLightGlow;
317-
checkPreferDDSTexture.Checked = Settings.PreferDDSTexture;
318317
checkUseLocationPassingPaths.Checked = Settings.UseLocationPassingPaths;
319318
checkUseMSTSEnv.Checked = Settings.UseMSTSEnv;
320319
trackAdhesionFactor.Value = Settings.AdhesionFactor;
321-
checkAdhesionPropToWeather.Checked = Settings.AdhesionProportionalToWeather;
322320
trackAdhesionFactorChange.Value = Settings.AdhesionFactorChange;
323321
trackAdhesionFactor_ValueChanged(null, null);
324322
checkShapeWarnings.Checked = !Settings.SuppressShapeWarnings; // Inverted as "Show warnings" is better UI than "Suppress warnings"
@@ -504,11 +502,9 @@ void buttonOK_Click(object sender, EventArgs e)
504502
Settings.PerformanceTunerTarget = (int)numericPerformanceTunerTarget.Value;
505503
Settings.LODBias = trackLODBias.Value;
506504
Settings.SignalLightGlow = checkSignalLightGlow.Checked;
507-
Settings.PreferDDSTexture = checkPreferDDSTexture.Checked;
508505
Settings.UseLocationPassingPaths = checkUseLocationPassingPaths.Checked;
509506
Settings.UseMSTSEnv = checkUseMSTSEnv.Checked;
510507
Settings.AdhesionFactor = (int)trackAdhesionFactor.Value;
511-
Settings.AdhesionProportionalToWeather = checkAdhesionPropToWeather.Checked;
512508
Settings.AdhesionFactorChange = (int)trackAdhesionFactorChange.Value;
513509
Settings.SuppressShapeWarnings = !checkShapeWarnings.Checked;
514510
Settings.PrecipitationBoxHeight = (int)precipitationBoxHeight.Value;
@@ -579,8 +575,9 @@ private void trackAdhesionFactor_ValueChanged(object sender, EventArgs e)
579575
private void SetAdhesionLevelValue()
580576
{
581577
int level = trackAdhesionFactor.Value - trackAdhesionFactorChange.Value;
582-
if (checkAdhesionPropToWeather.Checked)
583-
level -= 40;
578+
579+
// Allowance to make adhesion proportional to rain/snow/fog
580+
level -= 40;
584581

585582
if (level > 159)
586583
AdhesionLevelValue.Text = catalog.GetString("Very easy");

Source/ORTS.Settings/UserSettings.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,8 +300,6 @@ public enum DirectXFeature
300300
[Default(false)]
301301
public bool AuxActionEnabled { get; set; }
302302
[Default(false)]
303-
public bool PreferDDSTexture { get; set; }
304-
[Default(false)]
305303
public bool UseLocationPassingPaths { get; set; }
306304
[Default(false)]
307305
public bool UseMSTSEnv { get; set; }

Source/RunActivity/Viewer3D/Common/Helpers.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public static string GetNightTextureFile(Simulator simulator, string textureFile
6060
else if (!String.IsNullOrEmpty(nightTexturePath + textureName) && Path.GetExtension(nightTexturePath + textureName) == ".ace")
6161
{
6262
var alternativeTexture = Path.ChangeExtension(nightTexturePath + textureName, ".dds");
63-
if (simulator.Settings.PreferDDSTexture && !String.IsNullOrEmpty(alternativeTexture.ToLower()) && File.Exists(alternativeTexture))
63+
if (!String.IsNullOrEmpty(alternativeTexture.ToLower()) && File.Exists(alternativeTexture))
6464
{
6565
return alternativeTexture;
6666
}

Source/RunActivity/Viewer3D/Materials.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public Texture2D Get(string path, Texture2D defaultTexture, bool required = fals
8888
{
8989
var alternativeTexture = Path.ChangeExtension(path, ".dds");
9090

91-
if (Viewer.Settings.PreferDDSTexture && File.Exists(alternativeTexture))
91+
if (File.Exists(alternativeTexture))
9292
{
9393
DDSLib.DDSFromFile(alternativeTexture, GraphicsDevice, true, out texture);
9494
}

Source/RunActivity/Viewer3D/Processes/GameStateRunActivity.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1509,7 +1509,7 @@ protected override Texture2D GetTexture(Game game)
15091509
{
15101510
var alternativeTexture = Path.ChangeExtension(path, ".dds");
15111511

1512-
if (File.Exists(alternativeTexture) && game.Settings.PreferDDSTexture)
1512+
if (File.Exists(alternativeTexture))
15131513
{
15141514
DDSLib.DDSFromFile(alternativeTexture, gd, true, out texture);
15151515
}

0 commit comments

Comments
 (0)