show only avaliable games to join

Post here your questions about the Flash / Flex / Air API for SFS2X

Moderators: Lapo, Bax

aliko
Posts: 117
Joined: 09 Mar 2013, 16:26

show only avaliable games to join

Postby aliko » 09 Dec 2015, 10:07

Hello

I have 3 rooms.

Beginners have 1000 active users and 500 games,
Masters have 20 users and 10 games
Promasters have 10 users and 5 games.

When i change the room from masters to promaster, it becomes very fastly, but when i try to login Beginners room, it is coming slowly (because of counts)
I planned to show only the game rooms that game not started.

Also i want to inform that i'm creating games with CreateSFSGameRequest.

Do you have any advice for me ? (i hope I explained the problem)

Best Regards
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: show only avaliable games to join

Postby Lapo » 09 Dec 2015, 11:23

Hi,
joining 1000 users in a single Room is a problem because each user needs to receive the complete user list which is pretty big. Additionally if they send messages or update their User Variables all other clients must be updated, generating a lot of traffic.

You will probably need to rethink how users are matched or how they can find each other so that you don't have to cram so many users in a single Room.

For example users could be filtered using the FindUserRequest which works similar to a query in a database. When the player wants to find other users he can specify a number of parameters (e.g. the skill level, the country or spoken language etc...) and search based on those criteria.

Hope it helps
Lapo
--
gotoAndPlay()
...addicted to flash games

Return to “SFS2X ActionScript 3 API”

Who is online

Users browsing this forum: No registered users and 14 guests