add vsync option
This commit is contained in:
parent
645370fd4f
commit
cde61d144f
4 changed files with 53 additions and 12 deletions
|
|
@ -9,9 +9,6 @@ func _ready():
|
|||
$Buttons/FreeRoamButton.grab_focus()
|
||||
|
||||
GlobalVariables.loadConfig()
|
||||
$SettingsScreen/DialogPanel/GraphicsPanel/FOVSlider.value = GlobalVariables.FOV
|
||||
$SettingsScreen/DialogPanel/GraphicsPanel/AAOption.selected = GlobalVariables.msaa
|
||||
$SettingsScreen/DialogPanel/GraphicsPanel/SSAAOption.selected = GlobalVariables.ssaa
|
||||
|
||||
get_window().set_theme(load(GlobalVariables.theme_index[GlobalVariables.theme]))
|
||||
if (GlobalVariables.title_music == 1): $Music.play()
|
||||
|
|
@ -19,6 +16,8 @@ func _ready():
|
|||
$BackgroundImage.visible = false
|
||||
$DynamicBackground.visible = true
|
||||
|
||||
DisplayServer.window_set_vsync_mode(GlobalVariables.vsync as DisplayServer.VSyncMode)
|
||||
|
||||
get_tree().set_group("lights", "shadow_enabled", GlobalVariables.shadows == 1)
|
||||
|
||||
var moddir = DirAccess.open("user://Mods")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue