diff --git a/FerramAerospaceResearch.Base/Resources/Device.cs b/FerramAerospaceResearch.Base/Resources/Device.cs index cc1b25bf..c21da4fa 100644 --- a/FerramAerospaceResearch.Base/Resources/Device.cs +++ b/FerramAerospaceResearch.Base/Resources/Device.cs @@ -2,8 +2,8 @@ namespace FerramAerospaceResearch.Resources; public enum Device { + None, PreferGPU, CPU, - GPU, - None, + GPU } diff --git a/FerramAerospaceResearch/FARAeroComponents/VehicleExposure.cs b/FerramAerospaceResearch/FARAeroComponents/VehicleExposure.cs index f70ca202..3cec54a2 100644 --- a/FerramAerospaceResearch/FARAeroComponents/VehicleExposure.cs +++ b/FerramAerospaceResearch/FARAeroComponents/VehicleExposure.cs @@ -20,7 +20,7 @@ public enum Direction Body }; - public static readonly Device[] DeviceOptions = { Device.PreferGPU, Device.CPU, Device.GPU, Device.None }; + public static readonly Device[] DeviceOptions = { Device.None, Device.PreferGPU, Device.CPU, Device.GPU }; public static readonly Direction[] DirectionOptions = { Direction.Airstream, Direction.Sun, Direction.Body }; private readonly Renderer exposureRenderer = new(); @@ -132,10 +132,10 @@ private void Awake() { deviceSelect = new GUIDropDown(new[] { + LocalizerExtensions.Get("FARDeviceNone"), LocalizerExtensions.Get("FARDevicePreferGPU"), LocalizerExtensions.Get("FARDeviceCPU"), LocalizerExtensions.Get("FARDeviceGPU"), - LocalizerExtensions.Get("FARDeviceNone"), }, DeviceOptions, DeviceOptions.IndexOf(ComputeDevice)); diff --git a/GameData/FerramAerospaceResearch/FARConfig.cfg b/GameData/FerramAerospaceResearch/FARConfig.cfg index 9226349e..71c3fea9 100644 --- a/GameData/FerramAerospaceResearch/FARConfig.cfg +++ b/GameData/FerramAerospaceResearch/FARConfig.cfg @@ -153,11 +153,11 @@ FARConfig body = false // which device part areas will be counted on, one of: + // None - disable rendering // PreferGPU - use GPU if your system supports compute shaders, CPU otherwise [recommended] // CPU - use burst job // GPU - use GPU (almost identical to PreferGPU) - // None - disable rendering - device = PreferGPU + device = None // debug window background color debugBackgroundColor = 0, 0, 0 // black