Page 1 of 1

Smartfox 2.13.5 taking long time to create rooms

Posted: 20 Nov 2019, 09:11
by nik0990
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?

Re: Smartfox 2.13.5 taking long time to create rooms

Posted: 20 Nov 2019, 11:29
by Lapo
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

Re: Smartfox 2.13.5 taking long time to create rooms

Posted: 20 Nov 2019, 13:01
by nik0990
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?

Re: Smartfox 2.13.5 taking long time to create rooms

Posted: 20 Nov 2019, 14:52
by Lapo
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