Author |
Message |
HAL
Dev Team
Team:
Main: HAL 9000
Level: 1002 Class:
Berserker
Joined: Mon Dec 13, 2004 11:00 pm
|
Thummmper wrote: Jeff you might also consider putting the Slave maneuvers (Mining and Trade) in the slow thread. War Slaves should remain in the faster threads.
They really don't cause any significant lag - non-combat slaves are actually relatively cheap to maintain compared to other AI, since they already have their decisions chosen for them. Coding time would probably be better spent optimizing AI and base/drone target selection code, rather than trying to spawn it off into a lower priority thread. Threads can be a huge pain in the ass, and can cause a lot of problems if they aren't managed right.
Obviously before we go making any changes to anything of that nature, Jeff will probably use diagnostics to determine exactly what percentage of each server frame certain frequently called functions use, and from there we can figure out what priority to place on optimizing them.
In any case, as soon as the code on test goes live, I would say that it is likely that the server will run a smooth and consistent 8 FPS minimum (and closer to 10-15 on average). The problem really hasn't been with average times, the huge problem has been the spikes that occur infrequently.
|
Thu Jan 24, 2008 4:22 pm |
|
|
Takuhi
Team:
Main: Takuhi
Level: 966 Class:
Speed Demon
Joined: Sat Nov 26, 2005 9:15 am
|
I'm guessing this stuff would just be a quick fix till client 2 comes out as the server code will be completely different?
|
Thu Jan 24, 2008 4:55 pm |
|
|
HAL
Dev Team
Team:
Main: HAL 9000
Level: 1002 Class:
Berserker
Joined: Mon Dec 13, 2004 11:00 pm
|
No, the server code will remain (mostly) the same during the transition to client 2.
|
Thu Jan 24, 2008 5:10 pm |
|
|
Jacob Evans
Team:
Main: Jacob Evans
Level: 511 Class:
Gunner
Joined: Mon Dec 27, 2004 11:03 am
|
JeffL wrote: I have created a new thread that can process lower priority incoming network messages. The section of code that processes incoming network messages is in the main server loop, and most of the things that are lagging out the server occur there, so handing the costly messages off to this new thread will cause the main loop to not lag from them.
So far I have just made it so handling chat messages are handed off to this new thread. This is up and running on test atm. The two next big ones to hand off will be the two log in events, "handle logon", and "select character". Basically I just need to add a bunch of locks around data that is accessed by anything I want to hand off. But most of the 2 second lags we get seem to be from people logging in, so if I can get everything going with no deadlocks or data corruption, then those will be fixed. Who cares if there's a two second delay when you log in, anyway? As long as the firing, warping, and docking is fast, that is what really matters.
I hate the delay while i'm logging in because trying to trade between characters when you aren't an Operator sucks, one of your only options is to put them on top of eachother and switch while the item is dropped or give it to someone you trust to hold it while you switch. It usually isn't a 2 second delay either, it can go on for up the 15 seconds.
|
Fri Jan 25, 2008 1:41 pm |
|
|
Bluejayek
Team:
Main: .Blue
Level: 2649 Class:
Berserker
Joined: Wed Dec 15, 2004 7:16 pm
|
you could just drop a base on the one character and set the items for sale for 1 credit..
lag when logging is much better then lag while fighting
_________________ "This font is not available on your computer. Do you wish to use it anyways?" - Microsoft Word Error Message
|
Fri Jan 25, 2008 2:50 pm |
|
|
JeffL
Site Admin / Dev Team
Team:
Main: Jeff_L
Level: 1028 Class:
Sniper
Joined: Wed Mar 23, 2005 2:21 am Location: Santa Clara, CA
|
I have been testing the new threaded code on test a few times and found a problem each time and fixed it each time. This multithreaded coding can be very difficult and thank you for everyone who hops onto test when I ask, because really, it's not possible to test it without a bunch of volunteers. It's so important to test it beforehand because no one want the live server to start crashing all the time. =) I'm making progress and still working on it. Once it completely works, I think it will be a huge improvement to the server's performance.
_________________ For support, please create a support ticket here and I will get back to you as soon as possible.
|
Sat Jan 26, 2008 5:37 pm |
|
|
trevor54
Team:
Main: Trevor50
Level: 4503 Class:
Shield Monkey
Joined: Wed Jul 12, 2006 10:01 pm Location: Alabama
|
SO NO LAG?
_________________
Ricoh wrote: might sound hard 4 u...but learn reading? Stay strong, live long, and walk humbly.
Strawberry Blueberry Pancakes
|
Sat Jan 26, 2008 5:40 pm |
|
|
Nuromishi
Team:
Main: Nuroshounin
Level: 833 Class:
Engineer
Joined: Sat Aug 21, 2004 6:48 pm Location: Hoboken, NJ
|
trevor54 wrote: SO NO LAG?
At least Bizman and Shodaime won't be the ones causing the lag. ^_~
_________________ Fucking loot... Awesome character art by my friend Jee.
|
Sat Jan 26, 2008 7:08 pm |
|
|
LichG
Joined: Mon Jun 11, 2007 4:39 pm
|
_________________
|
Sun Jan 27, 2008 3:28 am |
|
|
JoelsonRocks
Joined: Fri Sep 10, 2004 5:17 pm Location: Mission, British Columbia, Canada
|
Thanks for filling us in Jeff.
|
Sun Jan 27, 2008 3:59 am |
|
|
PhycoKinetic
Officer
Team:
Main: PhysicalAbuse V
Level: 2007 Class:
Speed Demon
Joined: Tue Mar 28, 2006 6:46 am
|
2 Weeks and no update? How is the progress Jeff?
_________________ "We make war so that we may live in peace" Aristotle. A Greek philosopher.
|
Sat Feb 09, 2008 12:45 pm |
|
|
JeffL
Site Admin / Dev Team
Team:
Main: Jeff_L
Level: 1028 Class:
Sniper
Joined: Wed Mar 23, 2005 2:21 am Location: Santa Clara, CA
|
Progress is slow. Multithreading is difficult. I am still working on it, though.
_________________ For support, please create a support ticket here and I will get back to you as soon as possible.
|
Sat Feb 09, 2008 4:04 pm |
|
|
PhycoKinetic
Officer
Team:
Main: PhysicalAbuse V
Level: 2007 Class:
Speed Demon
Joined: Tue Mar 28, 2006 6:46 am
|
That sucks, but we know you can do it Keep up the good work.
_________________ "We make war so that we may live in peace" Aristotle. A Greek philosopher.
|
Sat Feb 09, 2008 4:14 pm |
|
|
Xionakis
Joined: Wed Mar 14, 2007 10:10 pm
|
i would like to sujest Geoman11 on some of the problems as he seems to know quite abit about coding and what not
|
Sun Feb 10, 2008 12:45 am |
|
|
Russell
Team:
Main: Llessur
Level: 2808 Class:
Engineer
Joined: Sun Nov 20, 2005 4:26 pm Location: Feilding, New Zealand
|
Has anyone looked at asteroids and mining as a source of lag?
Everytime I go through a system with asteroids the bottom drops out of my frame rate and my auto pilot dies.
The only asteroid belts that are necessary for game- play are Bonnet and possibly Ring.
I know that the reason asteriod belts were increased was because of overcrowding in Ring. Now we have similar problems all over the place and huge lag to boot !
|
Sun Feb 10, 2008 6:18 pm |
|
|
|