LateUpdate

Introduction

LateUpdate is a new feature improving pose update timing. It is enabled by default in Wave SDK. When enabled, the HMD pose will be updated again right before rendering every frame. Wave Unreal SDK provides multiple ways to access LateUpdate in C++ and Blueprint.

API Functions

  • Blueprint:

void SimulateCPULoading(int gameThreadLoading, int renderThreadLoading)

This Blueprint function is only used for debugging. The parameters gameThreadLoading and renderThreadLoading are both in microseconds, with a valid range of 1 to 100. It simulates CPU loadings on both threads. A larger value simulates higher loading.

../_images/lateupdate2.png
  • Blueprint:

void EnableLateUpdate(bool enable, bool doUpdateInGameThread = false, float predictTimeInGameThread = 0.0f)

This Blueprint function is used to enable or disable LateUpdate. By default, LateUpdate is enabled. This function is for internal use only.

  • doUpdateInGameThread will be ignored if enable is set to false.
  • predictTimeInGameThread will be ignored unless both enable and doUpdateInGameThread are set to true.
  • predictTimeInGameThread is in milliseconds, with a valid range of 1 to 100ms.
../_images/lateupdate3.png
  • Blueprint:

bool IsLateUpdateEnabled()

This Blueprint function is for checking if LateUpdate is enabled.

../_images/lateupdate1.png