runtime_selection.rst 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. .. _doc_runtime_selection:
  2. Switching runtimes
  3. ==================
  4. In OpenXR, it is standard for each runtime to implement a mechanism to make it
  5. the current runtime. In Steam, the Oculus application or Windows MR portal,
  6. there will be an option to switch to their runtime as the current OpenXR runtime.
  7. Generally speaking, end users will have a preferred runtime due to not having a reason
  8. to switch runtimes when playing games that support OpenXR. However, developers may wish to
  9. test multiple runtimes to see if their game behaves.
  10. To make this easy, Godot provides a dropdown in the top-right corner which can
  11. switch the runtime Godot will use when testing:
  12. .. image:: img/switch_runtime.png
  13. The OpenXR plugin will **not** work with the Microsoft MR runtime.
  14. That runtime only supports OpenXR applications that use DirectX,
  15. but Godot uses OpenGL ES 3.0 or 2.0.
  16. .. note::
  17. Selecting a runtime in this dropdown only applies to running the game
  18. from the editor. It does **not** change the runtime used by other
  19. applications. Exported projects will use the computers current runtime.
  20. Also, if you are deploying to an external device, this setting has no effect.
  21. As OpenXR doesn't have a mechanism for registering runtimes that we can query,
  22. Godot will check common locations for runtime configuration files.
  23. The locations that are checked are stored in the ``addons/godot_openxr/runtimes.json`` file.
  24. If you've installed a runtime in a nonstandard location or a runtime not currently present in this file, you can add it manually using a text editor.
  25. .. seealso::
  26. If the dropdown isn't shown in your editor, make sure the plugin is enabled.
  27. See :ref:`doc_enable_plugin`.