question

Jose Illescas avatar image
Jose Illescas asked

How start a game exactly at the same time in different devices?

Hello!

We are creating a multiplayer mobile game and we need to start the game exactly at the same time in all the devices.

We are using Unity and playfab to have a server build, using mirror to comunícate the unity builds.

We are starting the gameplay with a 3, 2, 1 countdown after the players are ready but we have some delay and one device starts before the other one.

How can we start the game exactly at the same time??

Thanks!

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

·
Made Wang avatar image
Made Wang answered

For multiplayer games, delays are unavoidable. You can assign players to servers in low-latency regions by setting the latency attribute for players during matchmaking and setting the Region selection rule in the queue. Refer to this sample.

If the scene loading is involved when you start the game, the amount of time the player will have to wait will also be affected by the performance of the player's device. You can set up a loading page and wait until all players are loaded before starting the game.

For more information about frame synchronization, you need to consult from external communities.

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.