Welcome to the Oculus Developer Forums!

Your participation on the forum is subject to the Oculus Code of Conduct.

In general, please be respectful and kind. If you violate the Oculus Code of Conduct, your access to the developer forums may be revoked at the discretion of Oculus staff.

What is Timewarp? Should I use it?

What is Timewarp? Should I use it?

Best Answer

  • ross.adminross.admin Posts: 24
    Accepted Answer

    Timewarp is an Oculus technology that helps maintain fast and responsive head tracking by modifying the rendered output on the fly to match very recent orientation information.

    When we render for VR, we render left- and right-eye views of the scene we are looking at – and we render these for our best predicted estimate of the orientation of the headset, at the time it will actually appear to the user. Timewarp is a technique where we allow an already-rendered eye view to be adjusted to appear as if it was originally rendered at a different orientation than the original orientation. This is done as part of the distortion rendering step. That means we can leave our prediction of the Rift’s orientation until the very last moment, and then predict it with much more accuracy – giving us a significant lower latency, which makes the VR that much more responsive.

    To implement it properly, follow the source code in the Oculus sample, shipped with the SDK, called “OculusRoomTiny." It contains an showcase C++ file called “OculusRoomTiny.cpp” which clearly shows the calls to the SDK required, and the order in which they need to be made. Follow this code closely.

    Timewarp is also supported on GearVR, where it can help games maintain responsive head tracking even if the frame rate starts to dip.

Sign In or Register to comment.