mailbox on linux

This commit is contained in:
Nordup 2024-11-29 21:36:31 +04:00
parent e9fcd708c3
commit 2557eda424
2 changed files with 5 additions and 0 deletions

View file

@ -16,6 +16,7 @@ config/tags=PackedStringArray("thegates")
run/main_scene="res://scenes/app.tscn"
run/enable_alt_space_menu=true
config/features=PackedStringArray("4.3")
run/max_fps=144
boot_splash/bg_color=Color(0, 0, 0, 0)
boot_splash/show_image=false
config/icon="res://app_icon/icon.svg"

View file

@ -38,6 +38,10 @@ func set_initial_screen() -> void:
if Platform.is_macos():
DisplayServer.window_set_mode(DisplayServer.WINDOW_MODE_FULLSCREEN)
Debug.logclr("Setting fullscreen mode", Debug.SILENT_CLR)
if Platform.is_linux():
DisplayServer.window_set_vsync_mode(DisplayServer.VSYNC_MAILBOX)
Debug.logclr("Setting vsync to mailbox", Debug.SILENT_CLR)
func _exit_tree() -> void: