How check lag value when internet down

Post here your questions about the Unity / .Net / Mono / Windows 8 / Windows Phone 8 API for SFS2X

Moderators: Lapo, Bax

Dzxyan
Posts: 7
Joined: 11 May 2016, 09:27

How check lag value when internet down

Postby Dzxyan » 19 May 2016, 05:48

I can check lag value when smartfox connect with lag value 80 ~ 300,
but when my internet connection down, that value will not have anymore,
how to check lag value if suddenly connection down?

And how define what value of lag value is belonging as good / bad connection?
User avatar
Lapo
Site Admin
Posts: 23009
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: How check lag value when internet down

Postby Lapo » 19 May 2016, 07:51

Dzxyan wrote:I can check lag value when smartfox connect with lag value 80 ~ 300,
but when my internet connection down, that value will not have anymore,
how to check lag value if suddenly connection down?

You can't :)
If you have no connection there is no way to measure the latency, because latency is measured by sending data, waiting for a reply and calculating the trip time.

And how define what value of lag value is belonging as good / bad connection?

It depends on your game.
A turn based game can work just fine even with 1000-2000ms of delay because it doesn't rely on fast messages. Conversely a fast, real time game (e.g. first person shooter) will start having problems when the latency is > 200ms.

Cheers
Lapo
--
gotoAndPlay()
...addicted to flash games

Return to “SFS2X C# API”

Who is online

Users browsing this forum: No registered users and 34 guests