Search found 52 matches

by Kicksome
15 Dec 2007, 20:12
Forum: Server Side Extension Development
Topic: Java vs. AS
Replies: 24
Views: 13210

I also noticed that I cut the time in 1/2 by time doing: map[mapid]+=newinfo (takes less than 100ms) after 4300 loops vs map[mapid]=map[mapid]+newinfo (takes about 220ms) after 4300 loops also on the java test if I do: var tmp = p.x+"|"+p.y+"|"+p.playername+" ("+ p.expl...
by Kicksome
15 Dec 2007, 19:54
Forum: Server Side Extension Development
Topic: Java vs. AS
Replies: 24
Views: 13210

The one thing I noticed that is different in your test than the actual application. You are creating 1 monster string. I'm creating 50 different strings - 1 for each map.
by Kicksome
15 Dec 2007, 19:48
Forum: Server Side Extension Development
Topic: Java vs. AS
Replies: 24
Views: 13210

Wow - weird stuff. When I do the loop with actionscript with 4300 entries it works in about 100ms or less. When I try with the loop with 4300 entries and use mapsend[mapid] = new StringBuilder() it works but it takes 500ms!!! var started = getTimer(); var lastmove = getTimer() - 6000...
by Kicksome
15 Dec 2007, 15:35
Forum: Server Side Extension Development
Topic: Java vs. AS
Replies: 24
Views: 13210

Great! thanks! I have to say I noticed a HUGE difference in my initial tests when I was creating strings with the str+= newstr loops in AS. The longer the string got- the more time it would take to do the concat (which you would expect - but it almost seemed [almost] exponential) A smaller string wo...
by Kicksome
15 Dec 2007, 03:08
Forum: Server Side Extension Development
Topic: Java vs. AS
Replies: 24
Views: 13210

I'm using an interval for each battle room. BUT I'm been using them and it works great for 100+ battles - no performance problems at all - even with 500 users logged in it's like 10% - 15% CPU time. This has worked great for the past 2 weeks. It's when I added the maps stuff that (and changed the ba...
by Kicksome
14 Dec 2007, 21:52
Forum: Server Side Extension Development
Topic: How to test for undefined SFS object?
Replies: 7
Views: 4318

function handleRequest(cmd, params, user, fromRoom) { if (cmd == "loadplayer") { trace("Load player: " + user.getName()) user.properties.put("action","M"); loadplayer(user.getName(), user, user.get...
by Kicksome
14 Dec 2007, 21:35
Forum: Server Side Extension Development
Topic: Java vs. AS
Replies: 24
Views: 13210

On a side note. I had set this in the config: <OutQueueThreads>200</OutQueueThreads> <ExtHandlerThreads>200</ExtHandlerThreads> Would this have cause any type of performance problem? I just set it back to 2 each. Additionally, when you go into combat - it creates a room with a interval set. It remov...
by Kicksome
14 Dec 2007, 21:26
Forum: Server Side Extension Development
Topic: Java vs. AS
Replies: 24
Views: 13210

As far as CPU. It's averaging well above 50% on all 4 processors (e.g. 40%, 60%, 35%, 75% across the processors). When I look at task manager, all 4 CPUs are about the same amount utilized. So 50% average across each CPU - up to 70% spikes. At that point it was starting to show lag on the client. As...
by Kicksome
14 Dec 2007, 18:29
Forum: Server Side Extension Development
Topic: Java vs. AS
Replies: 24
Views: 13210

Once the map data is load - I just send player positions on the map every second or so (I believe this is more cpu effective than keeping track of each individual that has moved and then figuring out who to send the move update to - especially when there is a lot of movement. With 100+ people on a s...
by Kicksome
14 Dec 2007, 16:53
Forum: Server Side Extension Development
Topic: Java vs. AS
Replies: 24
Views: 13210

Java vs. AS

The performance of my SFS application in Actionscript is not good. At about 250 users I start getting up to 70% CPU spikes on a quad core machine. Since I need to support at least 1000 users - that's not good. So I'm trying to figure out where I need to start moving my code to Java. I basically have...
by Kicksome
14 Dec 2007, 13:46
Forum: Server Side Extension Development
Topic: How to test for undefined SFS object?
Replies: 7
Views: 4318

How to test for undefined SFS object?

I'm having a bit of a problem testing to see if a SFS object is undefined in AS server side. For example where u is a user object as an optional parameter in a function. if (u != undefined) { //do stuff here } This works fine when I pass in u but when I don't I get a server side er...
by Kicksome
13 Dec 2007, 14:24
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Why should I use SFS instead of BlazeDS?
Replies: 8
Views: 5787

To me it sounds like they don't want to support an old product anymore and are releasing it as open source. That way they don't have to worry about current customers complaining that it's discontinued.
by Kicksome
06 Dec 2007, 13:16
Forum: Server Side Extension Development
Topic: Need to access global variables for MMORPG
Replies: 10
Views: 11453

I'm curious - if I have something like: monsters={} for (i=0; i< 1000; i++) { monsters[i] = {} monsters[i].id = i monsters[i].name = "monster " + i etc.... } room = createroom(room, null) room.properties.put("monsters", monsters&#...
by Kicksome
06 Dec 2007, 05:02
Forum: Server Side Extension Development
Topic: Need to access global variables for MMORPG
Replies: 10
Views: 11453

Don't room variables get sent to all the players in a room? I have pretty big player objects with tons of stats that users don't need have sent to them since it's done on the server side.
by Kicksome
04 Dec 2007, 16:31
Forum: Server Side Extension Development
Topic: Question about DB connections
Replies: 2
Views: 2891

Question about DB connections

Ok - I'm using a lot of database interaction now in smartfox and I have a concern about a particular operation I'm doing. When I create a new DB connection in the Config.xml and then I reference it in my extension - is it shared anytime I connect to the db and do a select etc??? i.e. do multiple con...

Go to advanced search