KhronosGroup / OpenXR-SDK-Source

Sources for OpenXR loader, basic API layers, and example code.

Home Page:https://khronos.org/openxr

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to implement function such like xrGetCurrentTime( )?

sockyjam opened this issue · comments

In some case, I need to get the current time of XrTime, to get the current pose of HMD.

This is intentionally not provided, there is no reason a normal app would need the "current" pose. Use the predicted display time instead, for most purposes. Otherwise you are likely to introduce judder or other artifacts.

@rpavlik thanks for reply. I see now. Please forget "current pose". Is there any function I can get the current time for some application reason?

xrWaitFrame -> XrFrameState -> predictedDisplayTime