High latency when playing a game

Post here your questions about the HTML5 / JavaScript for SFS2X

Moderators: Lapo, Bax

nik0990
Posts: 76
Joined: 23 Dec 2016, 10:48
Location: India

Re: High latency when playing a game

Postby nik0990 » 12 May 2017, 09:48

Hi,

Event Type "PING_PONG", Then at local ping showing 2.5 but at the live server it is showing near to 500 and on avg 428.

Is this network issue or client side code issue or server side issue?
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: High latency when playing a game

Postby Lapo » 12 May 2017, 09:58

Hi,
it's a network issue.
It is likely that the server is located pretty very far away from you're connecting from.

Normal values should range between 40-120ms, at least for a smooth gaming experience, especially for realtime games.

Cheers
Lapo
--
gotoAndPlay()
...addicted to flash games
nik0990
Posts: 76
Joined: 23 Dec 2016, 10:48
Location: India

Re: High latency when playing a game

Postby nik0990 » 12 May 2017, 10:37

Hi,
My Live server right now having this configuration.

Ram - 2GB
2 Core Processor
40 GB SSD Disk'
3 TB transfer

Server location is USA.
I know it is less configuration. I will update it soon. Can any one tell me how i can resolve this issue (network issue).
User avatar
Carl Lydon
Posts: 298
Joined: 12 Nov 2007, 16:15
Location: NYC
Contact:

Re: High latency when playing a game

Postby Carl Lydon » 12 May 2017, 13:01

The server somewhere in the USA, but where are you and how far are you from the server?
nik0990
Posts: 76
Joined: 23 Dec 2016, 10:48
Location: India

Re: High latency when playing a game

Postby nik0990 » 12 May 2017, 13:10

I am in india
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: High latency when playing a game

Postby Lapo » 12 May 2017, 14:43

nik0990 wrote:I am in india

Well that explains a lot! :D
The network packets are traveling thousands of miles across the world and it takes time, even at the speed of light (minus the physical resistance, analog/digital processing times etc...)

cheers
Lapo

--

gotoAndPlay()

...addicted to flash games
User avatar
Carl Lydon
Posts: 298
Joined: 12 Nov 2007, 16:15
Location: NYC
Contact:

Re: High latency when playing a game

Postby Carl Lydon » 12 May 2017, 14:45

So, the solution is to test with a server that is closer to your location. When you launch your application use a server (or servers) close to your customers.

Return to “SFS2X HTML5 / JavaScript API”

Who is online

Users browsing this forum: No registered users and 19 guests