Post new topic Reply to topic  [ 75 posts ]  Go to page 1, 2, 3, 4, 5  Next
Author Message
Site Admin / Dev Team
User avatar
Team: Admins
Rank: Director
Main: Jeff_L
Level: 1969

Joined: Wed Mar 23, 2005 2:21 am
Posts: 3894
Location: Santa Clara, CA
Post Lag Update
While my new networking code seems to have the main loop of the server running faster on average, I am still seeing some lag spikes. I added a bunch of timers in the last patch and have isolated with some good certainty what most of these lag spikes are. They are read queries to the DB when someone is logging in. It doesn't happen every time someone logs in, but often enough.

I don't see anything particularly bad or slow with these queries, but what I am going to try is multithreading the log in process so that no matter how slow it is to read in the initial data from the db, it won't slow or lag the main loop.

Right now in code, there are only a couple times we actually read from the DB. Mostly we write and all those writes are currently passed off onto another thread, so doing the same with reads makes sense.

_________________
For support, please create a support ticket here and I will get back to you as soon as possible. About Star Sonata.


Last edited by JeffL on Wed Jan 23, 2008 5:40 am, edited 1 time in total.

Mon Jan 14, 2008 3:37 am
Profile WWW
User avatar

Joined: Mon Jun 11, 2007 4:39 pm
Posts: 30
Post 
Sounds good, as long as it works :D

_________________
Image


Mon Jan 14, 2008 4:58 am
Profile
User avatar
Main: Goz
Level: 1564

Joined: Sat Dec 17, 2005 9:39 pm
Posts: 83
Location: Eredar US, Gozmatic (Horde)
Post 
yayy less lag is good, go jeff!

_________________
2nd place is just another way to say 1st loser.


Mon Jan 14, 2008 7:11 am
Profile WWW
User avatar
Team: Imperium
Rank: Councilor
Main: Qu4NtuM
Level: 7753

Joined: Tue Dec 20, 2005 5:16 pm
Posts: 326
Location: At work...
Post 
Noticed that the huge spikes occur every 1hour. Could it be cause by the DB backup or maybe some other job?

_________________
Julian wrote:
In ss we fill breast implants with sand because we are to cheap to purchase silicone.
Battlecruiser23 wrote:
I have reasons for why I do things.


Mon Jan 14, 2008 8:46 am
Profile
User avatar
Team: Eminence Front
Rank:
Main: Nurokourri
Level: 5049

Joined: Sat Aug 21, 2004 6:48 pm
Posts: 1056
Post 
Sounds good. Nice to hear an update on it.

_________________
Fucking loot...


Mon Jan 14, 2008 8:46 am
Profile
User avatar
Team: Aidelon
Rank: Operator
Main: Teh Haxzorz
Level: 2443

Joined: Thu Apr 27, 2006 1:58 am
Posts: 501
Location: United Kingdom
Post 
Good to know that you are hard at work at solving some of the lag issues Jeff. Thanks for the info.


Last edited by Grunt on Mon Jan 14, 2008 11:14 am, edited 1 time in total.

Mon Jan 14, 2008 10:42 am
Profile
Member
User avatar
Team: Traders
Rank: Director
Main: ERMAN
Level: 8516

Joined: Fri Jun 24, 2005 1:27 am
Posts: 840
Location: SW Michigan, USA
Post 
Like i said in other posts, it REALLY GREAT to have some info on what the hell is going on...even if I don't quite know exactly what you are meaning, its nice to see that problems are being identified and solved.

Also, giving us info like that can allow some of the more experienced people with coding/servers the ability to help or suggest solutions that perhaps the admins dont think of..

Remember that we want this game to work really well too.

-ERMAN

_________________
"I reject your reality, and substitute my own."
"If I were an enzyme, I'd be DNA Helicase so I could unzip your genes."


Mon Jan 14, 2008 10:55 am
Profile WWW
Member
Team: Traders
Rank:
Main: Wasup999998
Level: 1921

Joined: Sat Apr 09, 2005 2:03 pm
Posts: 152
Post 
/me smacks the DB what did I tell you about being slow, can you not read good or something! Thwack! Read faster!

Good idea Jeff, I like to know stuff like that cause I actually understand it ^.^

_________________
"Thanx wasup :)" ~The Voomy One

Ha!

Image
Image


Mon Jan 14, 2008 3:36 pm
Profile
User avatar
Team: Deep Space Federation
Rank:
Main: Green Dragon
Level: 2546

Joined: Sun Jul 18, 2004 5:08 pm
Posts: 584
Post 
Hey jeff, that is the case, but you only made the lag worse imo, it's not just me, the lag spikes are just longer and more often. For some reason, my SS runs better if a have a different program running in the foreground, and SS is in the bg, and when i have a really bad lag spike, i minimize SS, and that sometimes works. A little puzzling to me

~GD

_________________
College Sucks
*̡͌l̡*̡̡ ̴̡ı̴̴̡ ̡̡͡|̲̲̲͡͡͡ ̲▫̲͡ ̲̲̲͡͡π̲̲͡͡ ̲̲͡▫̲̲͡͡ ̲|̡̡̡ ̡ ̴̡ı̴̡̡ *̡͌l̡*.


Mon Jan 14, 2008 3:58 pm
Profile
User avatar
Main: Goz
Level: 1564

Joined: Sat Dec 17, 2005 9:39 pm
Posts: 83
Location: Eredar US, Gozmatic (Horde)
Post 
ijij wrote:
Hey jeff, that is the case, but you only made the lag worse imo, it's not just me, the lag spikes are just longer and more often. For some reason, my SS runs better if a have a different program running in the foreground, and SS is in the bg, and when i have a really bad lag spike, i minimize SS, and that sometimes works. A little puzzling to me

~GD


if you can do things to maniulate your client to stop lag then its you, not the server

_________________
2nd place is just another way to say 1st loser.


Mon Jan 14, 2008 4:32 pm
Profile WWW
User avatar
Team: Eminence Front
Rank:
Main: Nurokourri
Level: 5049

Joined: Sat Aug 21, 2004 6:48 pm
Posts: 1056
Post 
BAM5992 wrote:
if you can do things to maniulate your client to stop lag then its you, not the server


Before people bash Goz, he did just get something correct.

Goz got 120 xp. Goz leveled up!

_________________
Fucking loot...


Last edited by Nuromishi on Mon Jan 14, 2008 11:20 pm, edited 1 time in total.

Mon Jan 14, 2008 4:58 pm
Profile
User avatar
Team: Aidelon
Rank: Director
Main: goldstar-stations
Level: 6523

Joined: Sun Nov 13, 2005 12:54 pm
Posts: 1174
Post 
yea i gota agree. goz gave some decently informed advice! :D

if anything you do on your computer effects the speed and/or quality of the connection it is your computer not SS. maybe your video card or perhaps the computer just isnt strong enough to push through the application with other processes running in the backround. might want to try some heavy virus scanning. they effect computers big time.

_________________
Image


Mon Jan 14, 2008 10:06 pm
Profile
Team: oVo's Sanctuary
Rank: Officer
Main: .,+*"I.+**oVo**+.I"*+,.
Level: 2793

Joined: Fri Sep 29, 2006 7:27 am
Posts: 115
Location: Sitting infront of Computer
Post 
GOZ! - I am shocked , some marked improvement from you in the last few months, prehaps you are aging!

-oVo


Tue Jan 15, 2008 7:02 am
Profile
Team: Traders
Rank:
Main: Urqa Ki Aka Kusa
Level: 5113

Joined: Sun Nov 26, 2006 1:38 am
Posts: 6
Post 
Goz may be correct, but if thats the case then the System Requirements are fucked up.

I have a 64 MB Video Card, thats 4x what this game needs.

And i still get insane Graphics Problems, i get a low FPS, and thats all.


Tue Jan 15, 2008 7:38 am
Profile
User avatar
Team: Eminence Front
Rank:
Main: Nurokourri
Level: 5049

Joined: Sat Aug 21, 2004 6:48 pm
Posts: 1056
Post 
Original Soulless wrote:
Goz may be correct, but if thats the case then the System Requirements are fucked up.

I have a 64 MB Video Card, thats 4x what this game needs.

And i still get insane Graphics Problems, i get a low FPS, and thats all.


With a 16MB video card I can get around 22-28 FPS. I would suggest: lowering your resolution, running fewer programs, scanning for spyware/adware/viruses (I personally prefer Spybot Search and Destroy as well as AVG Free).

If you are running Vista that can also be an issue: I personally prefer Windows NT5.0 (Windows 2000) for only running Star Sonata, as it works properly without the increase in system usage by unnecessary software present in Vista and XP. You could also try disabling the Aero or Luna GUI of Vista/XP and using Classic.

As well, you have to consider what the game lists are minimum requirements: minimum won't get you very far.

_________________
Fucking loot...


Tue Jan 15, 2008 8:52 am
Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 75 posts ]  Go to page 1, 2, 3, 4, 5  Next


Who is online

Users browsing this forum: No registered users and 27 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © phpBB Group.