reckfellENGINE

OpenXRAndroidThreadSettingsExtension

Wraps the XR_KHR_android_thread_settings(https://registry.khronos.org/OpenXR/specs/1.1/html/xrspec.html#XR_KHR_android_thread_settings) extension.

On this page
class OpenXRAndroidThreadSettingsExtensionReckfellSharpInherits OpenXRExtensionWrapper

Wraps the XR_KHR_android_thread_settings(https://registry.khronos.org/OpenXR/specs/1.1/html/xrspec.html#XR_KHR_android_thread_settings) extension.

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.

Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.

Constructors1

OpenXRAndroidThreadSettingsExtensionConstructor
# OpenXRAndroidThreadSettingsExtension
C#
public OpenXRAndroidThreadSettingsExtension();

Methods1

SetApplicationThreadTypebool
# SetApplicationThreadType
C#
public bool SetApplicationThreadType(OpenXRAndroidThreadSettingsExtension.ThreadType threadType, uint threadId = 0);

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 ReckfellThread.GetId is incompatible with thread_id.

Parameters
NameTypeDefault
threadTypeOpenXRAndroidThreadSettingsExtension.ThreadType—
threadIduint0
Returns bool

OpenXRAndroidThreadSettingsExtension.ThreadType

ValueDescription
ApplicationMain = 0

Hints to the XR runtime that the thread is doing time critical CPU tasks.

ApplicationWorker = 1

Hints to the XR runtime that the thread is doing background CPU tasks.

RendererMain = 2

Hints to the XR runtime that the thread is doing time critical graphics device tasks.

RendererWorker = 3

Hints to the XR runtime that the thread is doing background graphics device tasks.

Reckfell Engine documentationBack to top ↑
QUICK LINKSGetting startedEntity hierarchyC# & .NET 10Scenes and prefabs
Reckfell guides and full API K
reckfellENGINE
RECKFELL ACCOUNT

Sign in

Sign in to your Reckfell account.

One account for the entire Reckfell platform.