:github_url: hide .. _class_OpenXRAndroidThreadSettingsExtension: OpenXRAndroidThreadSettingsExtension ==================================== **Hereda:** :ref:`OpenXRExtensionWrapper` **<** :ref:`Object` Wraps the `XR_KHR_android_thread_settings `__ extension. .. rst-class:: classref-introduction-group Descripción ---------------------- For XR to be comfortable, it is important for applications to deliver frames quickly and consistently. In order to make sure the important application threads get their full share of time, these threads must be identified to the system, which will adjust their scheduling priority accordingly. .. rst-class:: classref-reftable-group Métodos -------------- .. table:: :widths: auto +-------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`set_application_thread_type`\ (\ thread_type\: :ref:`ThreadType`, thread_id\: :ref:`int` = 0\ ) | +-------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Enumeraciones -------------------------- .. _enum_OpenXRAndroidThreadSettingsExtension_ThreadType: .. rst-class:: classref-enumeration enum **ThreadType**: :ref:`🔗` .. _class_OpenXRAndroidThreadSettingsExtension_constant_THREAD_TYPE_APPLICATION_MAIN: .. rst-class:: classref-enumeration-constant :ref:`ThreadType` **THREAD_TYPE_APPLICATION_MAIN** = ``0`` Hints to the XR runtime that the thread is doing time critical CPU tasks. .. _class_OpenXRAndroidThreadSettingsExtension_constant_THREAD_TYPE_APPLICATION_WORKER: .. rst-class:: classref-enumeration-constant :ref:`ThreadType` **THREAD_TYPE_APPLICATION_WORKER** = ``1`` Hints to the XR runtime that the thread is doing background CPU tasks. .. _class_OpenXRAndroidThreadSettingsExtension_constant_THREAD_TYPE_RENDERER_MAIN: .. rst-class:: classref-enumeration-constant :ref:`ThreadType` **THREAD_TYPE_RENDERER_MAIN** = ``2`` Hints to the XR runtime that the thread is doing time critical graphics device tasks. .. _class_OpenXRAndroidThreadSettingsExtension_constant_THREAD_TYPE_RENDERER_WORKER: .. rst-class:: classref-enumeration-constant :ref:`ThreadType` **THREAD_TYPE_RENDERER_WORKER** = ``3`` Hints to the XR runtime that the thread is doing background graphics device tasks. .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Descripciones de Métodos ------------------------------------------------ .. _class_OpenXRAndroidThreadSettingsExtension_method_set_application_thread_type: .. rst-class:: classref-method :ref:`bool` **set_application_thread_type**\ (\ thread_type\: :ref:`ThreadType`, thread_id\: :ref:`int` = 0\ ) :ref:`🔗` Sets the thread type of the given thread, so that the XR runtime can adjust its scheduling priority accordingly. \ ``thread_id`` refers to the OS thread id (ie from ``gettid()``). When ``thread_id`` is ``0``, it will set the thread type of the current thread. \ **NOTE:** The id returned by :ref:`Thread.get_id()` is incompatible with ``thread_id``. .. |virtual| replace:: :abbr:`virtual (Normalmente, este método debería ser sobreescrito por el usuario para que tenga algún efecto.)` .. |required| replace:: :abbr:`required (This method is required to be overridden when extending its base class.)` .. |const| replace:: :abbr:`const (Este método no tiene efectos secundarios. No modifica ninguna de las variables miembro de la instancia.)` .. |vararg| replace:: :abbr:`vararg (Este método permite agregar cualquier número de argumentos después de los descritos aquí.)` .. |constructor| replace:: :abbr:`constructor (Este método se utiliza para construir un tipo.)` .. |static| replace:: :abbr:`static (Este método no necesita una instancia para ser llamado, por lo que puede llamarse directamente utilizando el nombre de la clase.)` .. |operator| replace:: :abbr:`operator (Este método describe un operador válido para usar con este tipo como operando izquierdo.)` .. |bitfield| replace:: :abbr:`BitField (Este valor es un entero compuesto como una máscara de bits de las siguientes banderas.)` .. |void| replace:: :abbr:`void (Sin valor de retorno.)`