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
show only avaliable games to join
Re: show only avaliable games to join
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
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
Return to “SFS2X ActionScript 3 API”
Who is online
Users browsing this forum: No registered users and 30 guests