How to know user lag value from serverside

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

grhwood
Posts: 116
Joined: 15 Mar 2011, 04:43

How to know user lag value from serverside

Postby grhwood » 03 Jul 2013, 22:14

Hi,

Im wondering if there is a simple way to calculate user lag value from server side like client side lag monitor.

Thanks
User avatar
Lapo
Site Admin
Posts: 21680
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: How to know user lag value from serverside

Postby Lapo » 04 Jul 2013, 07:32

Hi,
you can send a simple Extension packet (Ping) that expects a client response (Pong) and calculate the time difference.
Lapo
--
gotoAndPlay()
...addicted to flash games

Return to “SFS2X Questions”

Who is online

Users browsing this forum: No registered users and 28 guests