Extension question - Which is best for optimization?

Need help with SmartFoxServer? You didn't find an answer in our documentation? Please, post your questions here!

Moderators: Lapo, Bax

User avatar
mistermind
Posts: 131
Joined: 15 Sep 2007, 01:33
Contact:

Extension question - Which is best for optimization?

Postby mistermind » 13 Nov 2008, 16:28

Since I'm not very familiar with Java, I have to build my extensions on actionscript, which is not that bad, but I can see how much lag it causes to my game.

But what is best for optimization?
Having a big extension file spread with different cmd parameters or having your zone loads different extension files for different situations?
SELECT * FROM users WHERE clue > 0
0 rows returned.
User avatar
mistermind
Posts: 131
Joined: 15 Sep 2007, 01:33
Contact:

Postby mistermind » 13 Nov 2008, 16:33

Ha. Found an answer from Lapo from way back to a similar question. Thanks blessed search, and sorry for the report before searching :)

To SFS it doesn't make any difference. You can use a single huge extension file, or multiple .as files that are included in the main one.

It's a matter of personal preference.
Since Actionscript is not entirely OOP and it doesn't enforce OOP I would at least divide the functions into various files grouping them by context/task etc...
SELECT * FROM users WHERE clue > 0

0 rows returned.

Return to “SmartFoxServer 1.x Discussions and Help”

Who is online

Users browsing this forum: No registered users and 96 guests