### Initialize AR/VR Plugin and Viewport Source: https://github.com/godotvr/godot-xr-tools/wiki/Home This code snippet demonstrates how to initialize an AR/VR plugin and configure the main viewport for XR rendering. It also shows how to disable v-sync and synchronize physics with the frame rate. ```gdscript func _ready(): var interface = ARVRServer.find_interface("name of the plugin") if interface and interface.initialize(): # turn the main viewport into an ARVR viewport: get_viewport().arvr = true # turn off v-sync OS.vsync_enabled = false # put our physics in sync with our expected frame rate: Engine.iterations_per_second= 90 ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.