Smartfox 2.13.5 taking long time to create rooms

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

Moderators: Lapo, Bax

nik0990
Posts: 76
Joined: 23 Dec 2016, 10:48
Location: India

Smartfox 2.13.5 taking long time to create rooms

Postby nik0990 » 20 Nov 2019, 09:11

Hi Team,

I am facing a wried problem, Smartfox taking longer time to craete rooms due to that my game is not starting properly.

- I have a Multi-Room game that use to create around 70-100 room.
- When 3/4 Multi-Room game start, my room creation logic calls and from 3/4+1 thread creating the rooms.
- At this time, Smartfox room creation slow down.

Could you please help me?
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Smartfox 2.13.5 taking long time to create rooms

Postby Lapo » 20 Nov 2019, 11:29

Hi,
do these Rooms that you're creating have an Extension attached?
If so this can slow down the creation time as each Extension needs to be loaded and initialized. Depending on the hardware in use and the complexity of the init() method in the loaded Extension you might encounter similar issues.

- I have a Multi-Room game that use to create around 70-100 room.

Every game creates 70-100 rooms? Or 70-100 is the total number of Rooms your game uses?

Thanks
Lapo
--
gotoAndPlay()
...addicted to flash games
nik0990
Posts: 76
Joined: 23 Dec 2016, 10:48
Location: India

Re: Smartfox 2.13.5 taking long time to create rooms

Postby nik0990 » 20 Nov 2019, 13:01

do these Rooms that you're creating have an Extension attached?


Yes Every room have extension attached

Every game creates 70-100 rooms? Or 70-100 is the total number of Rooms your game uses?


yes, This is Multi Level game and different people on different level.

So can you suggest, How i can decrease the room creation time?
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Smartfox 2.13.5 taking long time to create rooms

Postby Lapo » 20 Nov 2019, 14:52

I didn't quite understand if the 70-100 is the global number of Rooms or if it's the number of Rooms that every game creates?

Yes Every room have extension attached
So can you suggest, How i can decrease the room creation time?

At the very minimum it depends on those two variables I mentioned (hardware specs, and what the init() of your Room Extension does) but you haven't provided more details, so I am not able to guess what might be going on.

So, what kind of server are you running? CPU/RAM etc...
Can you describe what your Room Extension init does?
Are there even different types of Room Extensions?

Have you checked the status of the CPU usage during the creation time? Is it maxed out?

Thanks
Lapo

--

gotoAndPlay()

...addicted to flash games

Return to “SFS2X Questions”

Who is online

Users browsing this forum: No registered users and 51 guests