AppRemoting.TryConvertToPlayerTime(Int64, Int64) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Convert the time from a remote app QPC time to the synchronized player app QPC time.
public static bool TryConvertToPlayerTime(long remotePerformanceCount, out long playerPerformanceCount);
static member TryConvertToPlayerTime : int64 * int64 -> bool
Public Shared Function TryConvertToPlayerTime (remotePerformanceCount As Long, ByRef playerPerformanceCount As Long) As Boolean
Parameters
- remotePerformanceCount
- Int64
The performance count obtained in the remote app using QueryPerformanceCounter.
- playerPerformanceCount
- Int64
Output the synchronized performance count as if it is using QueryPerformanceCounter in the player app at the same time. The output will be 0, indicating invalid time, if the function returns false.
Returns
Returns true when the time is successfully converted. Returns false when the time synchronization between remote and player app is not yet established.
Remarks
This functionality needs the "Holographic Remoting remote app" feature in OpenXR project settings to be enabled and returns false otherwise. This functionality always returns false in Holographic PlayMode Remoting.