Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions FerramAerospaceResearch.Base/Resources/Device.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ namespace FerramAerospaceResearch.Resources;

public enum Device
{
None,
PreferGPU,
CPU,
GPU,
None,
GPU
}
4 changes: 2 additions & 2 deletions FerramAerospaceResearch/FARAeroComponents/VehicleExposure.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Part> exposureRenderer = new();
Expand Down Expand Up @@ -132,10 +132,10 @@ private void Awake()
{
deviceSelect = new GUIDropDown<Device>(new[]
{
LocalizerExtensions.Get("FARDeviceNone"),
LocalizerExtensions.Get("FARDevicePreferGPU"),
LocalizerExtensions.Get("FARDeviceCPU"),
LocalizerExtensions.Get("FARDeviceGPU"),
LocalizerExtensions.Get("FARDeviceNone"),
},
DeviceOptions,
DeviceOptions.IndexOf(ComputeDevice));
Expand Down
4 changes: 2 additions & 2 deletions GameData/FerramAerospaceResearch/FARConfig.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down