enableLagMonitor

Post here your questions about the Objective-C API for SFS2X

Moderators: Lapo, Bax

superprat
Posts: 44
Joined: 07 Feb 2012, 20:55
Location: India

enableLagMonitor

Postby superprat » 21 Feb 2014, 11:55

Can't seem to find the enableLagMonitor functionality in the obj-c API.
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: enableLagMonitor

Postby Lapo » 21 Feb 2014, 15:07

Hi,
yeah, it's not yet available in the iOS API.
But it's in the works for the next update :)
Lapo
--
gotoAndPlay()
...addicted to flash games
superprat
Posts: 44
Joined: 07 Feb 2012, 20:55
Location: India

Re: enableLagMonitor

Postby superprat » 21 Feb 2014, 15:15

:( :cry:
superprat
Posts: 44
Joined: 07 Feb 2012, 20:55
Location: India

Re: enableLagMonitor

Postby superprat » 25 Feb 2014, 14:17

Lapo, I'm getting a latency of 800ms+ to 1500ms on a 3G Connection. I've tested on several devices(iPhones). Latency is fine on Wifi

I wanted to know if this is something that is expected? I don't think a real time game is playable with these kind of latencies.
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: enableLagMonitor

Postby Lapo » 25 Feb 2014, 14:24

Yes , unfortunately 3G networks aren't very good, although they may vary depending on the carrier. 1500ms is incredibly slow, pretty bad indeed.

Those latencies can be acceptable for turn based games. Definitely not for action/real-time games.
Lapo

--

gotoAndPlay()

...addicted to flash games
superprat
Posts: 44
Joined: 07 Feb 2012, 20:55
Location: India

Re: enableLagMonitor

Postby superprat » 25 Feb 2014, 15:02

Is there any way to optimize deployment ? Switching to UDP or Bluebox help?

I am using an Amazon EC2 Instance with RightScale.
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: enableLagMonitor

Postby Lapo » 25 Feb 2014, 17:22

No it won't.
UDP is unlikely to be supported by 3G carriers and the BlueBox uses HTTP tunneling when sockets are not available. Being HTTP a slower protocol there won't be any advantages.

It's also worth saying that 3G networks usually don't perform so bad (i.e. 800-1500 msec). Is it possible you didn't have enough signal? Have you tried with different carriers?
Lapo

--

gotoAndPlay()

...addicted to flash games
superprat
Posts: 44
Joined: 07 Feb 2012, 20:55
Location: India

Re: enableLagMonitor

Postby superprat » 26 Feb 2014, 10:22

Signal is full, but Vodafone is a major carrier here. Even if other carriers show better performance, this issue can't be sidelined.

Will moving to a dedicated hosting closer to me help? Or that is irrelevant I believe since the bottleneck is at cell towers?
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: enableLagMonitor

Postby Lapo » 26 Feb 2014, 11:23

Yes changing host can help, although it's not guaranteed.
It depends where most of the lag is spent. You can try using a mobile device and ping several hosting providers that you know and see which one appears to be less laggy. The problem though is that we're talking about mobile devices, so people can be connecting from anywhere.

What I mean is that you might be able to find a local provider that has lower latency but maybe people from other places will not obtain the same benefit.
In any case I think experimenting is the only way to find an optimal solution.
Lapo

--

gotoAndPlay()

...addicted to flash games

Return to “SFS2X iPhone / iPad / OSX API”

Who is online

Users browsing this forum: No registered users and 9 guests