UserCountChangeUpdateInterval not working

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

Moderators: Lapo, Bax

dhuang11
Posts: 38
Joined: 02 May 2014, 08:21

UserCountChangeUpdateInterval not working

Postby dhuang11 » 08 Aug 2015, 14:59

We've set <userCountChangeUpdateInterval>5000</userCountChangeUpdateInterval> for a specific zone to help reduce bandwidth consumption. However, we are still seeing SFSEvent.USER_COUNT_CHANGE events being fired in real time. We've tried changing that setting from 1000 to 10000 and nothing ever seems to work. We've also tried this setting on 3 different servers to no avail. All of our servers are running SFS2X 2.10.0. We have not tried to test this on 2.9.2.

What are we missing to get UserCountChange throttling to work? Right now, our bottleneck is bandwidth and we are seeing a lot of USER_COUNT_CHANGE events in realtime. For our game, we can have a bit of a delay on user_count_change events and would prefer to have those aggregated and sent less frequently as well. This should help our bandwidth consumption quite a bit.
User avatar
Lapo
Site Admin
Posts: 23026
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: UserCountChangeUpdateInterval not working

Postby Lapo » 09 Aug 2015, 08:27

Hi,
I am sorry, I can't reproduce the problem.

Setting the userCountChangeUpdateInterval parameter to 20 000 does indeed add a long delay to the USER_COUNT_UPDATE event on the client side. Additionally all the events happening between two long updates are "compressed" to a single update.

The experiment to see this in action is super easy:

- Configure the throttler to a high value (such as 20 000)
- Log in with one client (User A)
- Log a second client in (User B)
- Join B in a Room
- Wait to see the update coming

As expected the USER_COUNT_UPDATE does not arrive in real time. Similarly if you disconnect User B, the other client will see the count change much later.

cheers
Lapo
--
gotoAndPlay()
...addicted to flash games
dhuang11
Posts: 38
Joined: 02 May 2014, 08:21

Re: UserCountChangeUpdateInterval not working

Postby dhuang11 » 09 Aug 2015, 08:47

Hi -

Thanks for the response. The way you are testing is exactly how we are testing. We are seeing realtime even when set to a very high value such as 30000. What else could we be missing?
dhuang11
Posts: 38
Joined: 02 May 2014, 08:21

Re: UserCountChangeUpdateInterval not working

Postby dhuang11 » 09 Aug 2015, 12:13

Hi -

Sorry - I know what's wrong. Our mistake. We were programmatically setting the zone's userCountChangeUpdateInterval which would cause it to ignore the XML setting.

Return to “SFS2X Questions”

Who is online

Users browsing this forum: No registered users and 98 guests