Thread Count keeps increasing

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

Moderators: Lapo, Bax

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

Re: Thread Count keeps increasing

Postby Lapo » 13 Jul 2012, 11:33

Every time you call the trace(...) method in your Extension code. Check the docs for all the details:
http://docs2x.smartfoxserver.com/api-do ... doc/server
Lapo
--
gotoAndPlay()
...addicted to flash games
javaSan
Posts: 4
Joined: 15 Jan 2018, 06:54

Re: Thread Count keeps increasing

Postby javaSan » 23 Jan 2018, 07:48

rjgtav wrote:Well, by a global Task I mean a task that runs at the Zone-Level, which has a local list of the rooms that will be iterated in each run.
If you're using this for a turn based, the best way would be to run the global task every second and reduce a time variable by 1 every run. Then, when that variable reaches 0, you execute the necessary code.



Hi, Can u give a example code of above solution.
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Thread Count keeps increasing

Postby Lapo » 23 Jan 2018, 09:30

I've replied to your PM.
Lapo

--

gotoAndPlay()

...addicted to flash games

Return to “SFS2X Questions”

Who is online

Users browsing this forum: Google [Bot] and 72 guests