aboutsummaryrefslogtreecommitdiff
path: root/client/global.gd
diff options
context:
space:
mode:
Diffstat (limited to 'client/global.gd')
-rw-r--r--client/global.gd18
1 files changed, 12 insertions, 6 deletions
diff --git a/client/global.gd b/client/global.gd
index 3cf2816d..82409ae4 100644
--- a/client/global.gd
+++ b/client/global.gd
@@ -54,16 +54,16 @@ var default_settings := {
"server_binary": TextSetting.new(tr("Server binary (leave empty to search PATH)"), "", tr("Enter path")),
"server_data": TextSetting.new(tr("Server data directory (leave empty to auto-detect)"), "", tr("Enter path")),
"ui_scale": DropdownSetting.new(tr("UI scale"), 0, [tr("Resize"), tr("Disabled")]),
- "aa": DropdownSetting.new(tr("Anti-aliasing"), 2 if on_vulkan() else 0, [tr("Disabled"), "FXAA", "MSAA 2x", "MSAA 4x"]),
- "ssao": ToggleSetting.new(tr("Ambient occlusion"), true if on_vulkan() else false),
+ "aa": DropdownSetting.new(tr("Anti-aliasing"), 2 if on_high_end() else 0, [tr("Disabled"), "FXAA", "MSAA 2x", "MSAA 4x"]),
+ "ssao": ToggleSetting.new(tr("Ambient occlusion"), true if on_high_end() else false),
"taa": ToggleSetting.new(tr("Temporal Anti-Aliasing"), false),
"voxel_gi": ToggleSetting.new(tr("Use VoxelGI (Blocks the game on map update but is more accurate)"), false),
"sdfgi": ToggleSetting.new(tr("Use SDFGI (Doesn't block the game but produces more artifacts)"), false),
- "shadows": ToggleSetting.new(tr("Enable shadows"), true if on_vulkan() else false),
- "glow": ToggleSetting.new(tr("Enable glow"), true if on_vulkan() else false),
+ "shadows": ToggleSetting.new(tr("Enable shadows"), true if on_high_end() else false),
+ "glow": ToggleSetting.new(tr("Enable glow"), true if on_high_end() else false),
"debug_info": ToggleSetting.new(tr("Display debug info (Framerate, etc.)"), false),
- "grass_amount": RangeSetting.new(tr("3D grass amount per grass tile"), 16 if on_vulkan() else 0, 0, 32),
- "lq_trees": ToggleSetting.new(tr("Low-poly trees"), false if on_vulkan() else true),
+ "grass_amount": RangeSetting.new(tr("3D grass amount per grass tile"), 16 if on_high_end() else 0, 0, 32),
+ "lq_trees": ToggleSetting.new(tr("Low-poly trees"), false if on_high_end() else true),
"setup_complete": ToggleSetting.new(tr("Initial setup complete. (Uncheck and restart to reenter)"), false),
"tutorial_started": ToggleSetting.new(tr("Tutorial started"), false),
"latch_boost": ToggleSetting.new(tr("Always extend boost to maximum duration"), true)
@@ -242,6 +242,12 @@ func load_settings(path: String):
save_settings() # Save updated keys
+func on_high_end() -> bool:
+ var os_name := OS.get_name()
+ if os_name == "Android" or os_name == "iOS":
+ return false
+ return on_vulkan()
+
func on_vulkan() -> bool:
return ProjectSettings.get_setting("rendering/rendering_device/driver") == "vulkan"