question

Nicolas Zordan avatar image
Nicolas Zordan asked

Get synchronized server time

Hello,

We are currently working on the multiplayer part of our game on Xbox Series X and are using PlayFab Party.

On other platforms we are using the library Yojimbo for our network and the library provides a function that returns the server time.

https://github.com/networkprotocol/yojimbo/blob/master/yojimbo.h#L5257

We would like to know if PlayFabParty provides a way to retrieve a synchronized time for any user in the same way.

All we could find in the header file `Party.h` is `PartyNetwork::GetNetworkStatistics` and `PartyEndpoint::GetEndpointStatistics` which can only give you the latency between the user and another user / the network.

multiplayer
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Rick Chen avatar image
Rick Chen answered

The PlayFabParty does not have this feature currently. But a workaround is to use the GetTime API from PlayFabSDK to retrieve the server time.

If you have any further question, please feel free to ask.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.