Low read/write rate in version 1.0.3

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

Moderators: Lapo, Bax

vmnikulin
Posts: 26
Joined: 17 Feb 2012, 12:48

Low read/write rate in version 1.0.3

Postby vmnikulin » 04 Oct 2012, 13:25

Hello!

We are developing MMO project using Unity3D and Smarfox. After upgrade Smartfox2.dll from 1.0.1 to 1.0.3 we had found that we can't send and receive more than 100 packets per second. It's a bottle neck for our real-time game.
We tested our network with network sniffer - it's ok.
We think that the problem is located in new feature - multithreaded sending of requests.
Could you help us?
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Low read/write rate in version 1.0.3

Postby Lapo » 04 Oct 2012, 14:27

Hi,
100 packets per second doesn't sound like reasonable rate in a real life multiplayer game.
Even the most lucky players get a latency of 40-50ms at best which means it's usually best not to exceed 20 packets/sec over TCP or a bit more over UDP.

Can you explain your use case?
Thanks
Lapo
--
gotoAndPlay()
...addicted to flash games
Ferz
Posts: 21
Joined: 27 Aug 2011, 08:17

Re: Low read/write rate in version 1.0.3

Postby Ferz » 04 Oct 2012, 15:59

The case is:
20 battle cars wich sends 5 times per seconds it's position plus 5 times per seconds rotation of it's turret.
Every car can shoot from 2 different weapons. Every shot can damage rival.
Every rival can send chat messages.

We use UDP when it's possible but 100 packets limit kills all gameplay. When we use 1.0.1 version of SmartFox2.dll everything is ok.

The project is http://mwogame.com/media
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Low read/write rate in version 1.0.3

Postby Lapo » 04 Oct 2012, 17:01

I see, so your concern is more on the reading side... makes sense.
I think I know why this is happening, but I need ThomasLund to double check the code.
Lapo

--

gotoAndPlay()

...addicted to flash games
Ferz
Posts: 21
Joined: 27 Aug 2011, 08:17

Re: Low read/write rate in version 1.0.3

Postby Ferz » 04 Oct 2012, 17:38

Looking forward to hearing from you. Thanks.
Ferz
Posts: 21
Joined: 27 Aug 2011, 08:17

Re: Low read/write rate in version 1.0.3

Postby Ferz » 12 Oct 2012, 11:39

Any news?
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Low read/write rate in version 1.0.3

Postby Lapo » 12 Oct 2012, 13:52

Yes, we have updated the C# API --> http://www.smartfoxserver.com/download/sfs2x#p=updates
Lapo

--

gotoAndPlay()

...addicted to flash games
ThomasLund
Posts: 1297
Joined: 14 Mar 2008, 07:52
Location: Sweden

Re: Low read/write rate in version 1.0.3

Postby ThomasLund » 04 Nov 2012, 15:55

Yep - my fault. Sorry.

Is the new one working for you?
Full Control - maker of Unity/C# and Java SFS API and indie games
Follow on twitter: http://twitter.com/thomas_h_lund

Return to “SFS2X C# API”

Who is online

Users browsing this forum: No registered users and 35 guests