Author Topic: Horrible Lag  (Read 2007 times)

Sylus

  • Traveller
  • *
  • Posts: 11
    • View Profile
Horrible Lag
« on: July 25, 2003, 09:14:29 am »
Well, here\'s the required information first:

Time of test: Latest was 12:11AM PST, 7/25
OS: Windows XP Pro
Processor: AMD Duron 1.2GHz
RAM: 512MB PC-3200
Video Card: Gainward Gf4 Ti4200 8x
Video Card Memory: 128
PS Client Version: Whatever the latest is using updater
OpenGL or Safe Mode: OpenGL
Description of the bug: See below

I\'m experiencing some horrible graphical lag.  I\'ve seen a few posts about it, and I went through the lag fix posted by c0deX.  This didn\'t seem to help any noticable amount.  The lag is so bad that when I press the arrow keys to turn left and right, it\'s nearly a minute before it actually changes the view.  Is this a problem anyone else is experiencing/has experienced?  Thanks in advance.

CadRipper

  • Hydlaa Citizen
  • *
  • Posts: 487
  • merry troublemaker
    • View Profile
(No subject)
« Reply #1 on: July 25, 2003, 09:36:34 am »
Don\'t worry, you\'re not alone to experience this  ;)

Your system seems all right to run this game. Try to move to another area, or try later, it is not always like that, fortunately ! But sometimes, you may even be frozen for several minutes, though it is rare. The initial place where you spawn in the game is also one of the most demanding - like an initial test to see if you\'re worth it or not   8o  (j/k).

Sylus

  • Traveller
  • *
  • Posts: 11
    • View Profile
(No subject)
« Reply #2 on: July 25, 2003, 09:40:11 am »
Yeah, after posting I read up a little more and found another thread about lag problems.

Do you think it would run better on RedHat 9?  I already have my system set up to dual-boot, but I\'m not restarting unless it\'s actually going to help any ;)  Any suggestions on times that it isn\'t so laggy?  Is it caused by a lot of users? Or just random times?

CadRipper

  • Hydlaa Citizen
  • *
  • Posts: 487
  • merry troublemaker
    • View Profile
(No subject)
« Reply #3 on: July 25, 2003, 10:13:01 am »
I\'ve heard it runs more smoothly on Linux, though I didn\'t try it myself yet  :)

I\'m not sure about those laggy effects. There are several different causes probably
- 3D rendering : your fps rate will drop, but it is playable and the rate is constant;
- information fetching from the harddisk : choppy, you move smoothly then it stops for 1/10\" or so, then goes on etc... It happens typically in the cellar (you\'ll see it when you will be more familiar with PS). It is due to many information messages coming from the server at the same time, that makes the program fetch additional info on the disk;
- then the famous \"lag\" that makes people cry in despair. Usually, this is specific to an area of the world. Everyone in it (except one lucky player I know of :P) experiences difficulties like the one you described. Then it goes as suddenly as it comes. Scientists and computer psychiatrists are working on it  ;)

But I still have to learn a good explanation about this last one !

Sylus

  • Traveller
  • *
  • Posts: 11
    • View Profile
(No subject)
« Reply #4 on: July 25, 2003, 10:17:05 am »
Well, I really haven\'t gone outside of the starting area.  The first direction I successfully went in, I ended up at a closed gate with a small tower thing.  When I was facing the wooden gate, I could turn left and right with very little lag, but as soon as I started to see anything other than the gate, being mainly open space, it would just lock up (not completely, just temporarily).  I suppose that would go under the third category.

Vengeance

  • Veteran
  • *
  • Posts: 1452
    • View Profile
(No subject)
« Reply #5 on: July 26, 2003, 03:45:42 am »
The lag is not caused by network messages.

Mostly it is related to moving the textures required for the scene you are looking at for the first time from main RAM to your gfx card.

If you are experiencing lag that bad, it sounds like a driver problem.  It should not be that bad.  You might try updating your drivers.

- Venge

Draklar

  • Forum Legend
  • *
  • Posts: 4422
    • View Profile
(No subject)
« Reply #6 on: July 26, 2003, 06:06:20 pm »
I have:

OS: Windows XP Pro
Processor: Athlon XP 2000+
RAM: 512MB
Video Card: Gainward Gf4 Ti4600

And there is no place i\'m not getting lag, only in some parts of dungeon i\'m staying lag free.
By lag i mean having something like 0,1 fps...
It was working fine for last month, and just got that bad after moving server.
I just want to know if it can be caused by moving server, or i have to reinstall OS (i don\'t want to do it for nothing :().
AKA Skald

Draklar

  • Forum Legend
  • *
  • Posts: 4422
    • View Profile
(No subject)
« Reply #7 on: July 26, 2003, 09:15:13 pm »
Lag is killing everyone at the moment. It is horrible even in dungeon. Is this server going to be improved soon?
« Last Edit: July 26, 2003, 09:16:03 pm by Draklar »
AKA Skald

chrischoo

  • Hydlaa Resident
  • *
  • Posts: 151
    • View Profile
(No subject)
« Reply #8 on: July 26, 2003, 09:32:57 pm »
There\'s nothing we can do about the server or the connection we\'re on. The setup presently is almost identical to the previous server except for differences in the version numbers of software we\'re running, and that our server is now in a rack adjacent to the previous one.

I would hazard a guess that the lag you\'re facing is partly due to the fact that the server is halfway around the world. If you were where I am (I\'d say I\'m about 16km from the server, and not 5,000km like some of you) then it certainly doesn\'t look that bad at all.

I haven\'t been very active on Planeshift itself so I am not in the best position to see for myself how things have \'deteriorated\'. All we did was to move everything, not just Planeshift, from one server to another. If you guys have any suggestions I\'m all ears.

Perhaps... (and this is only a guess)... There is a difference when the PS server is run under RH8.0 as opposed to 7.3? I am more inclined to think it more as a software problem. Either that or there is something really strange about that switch we installed... Our Counterstrike servers aren\'t complaining though.

CadRipper

  • Hydlaa Citizen
  • *
  • Posts: 487
  • merry troublemaker
    • View Profile
"Lag" switched off ?
« Reply #9 on: July 26, 2003, 09:38:05 pm »
Quote
Originally posted by CadRipper
- information fetching from the harddisk : choppy, you move smoothly then it stops for 1/10\" or so, then goes on etc... It happens typically in the cellar (you\'ll see it when you will be more familiar with PS). It is due to many information messages coming from the server at the same time, that makes the program fetch additional info on the disk;

Sorry Vengeance, as usual, I expressed myself quite badly  :rolleyes:

Of course, the first time you look around at a new place, this is choppy because of the textures being uploaded to the graphic card (and maybe from the disk ?). I\'ve said that in another thread but I didn\'t here.

What I was talking about is the choppy effect you get even after being online for some time. For instance, the famous cellar. You can go in and out as many times as you wish, this is choppy everytime. It makes it very hard to control the character.

What makes me talk about the messages coming from the server is the following test (the idea came to me simply because I noticed HD activity corresponding to this effect and I was trying to pin it down).

I will call #2 the choppy effect I\'ve just talked about and #3 the freeze that can last up to several minutes, to keep the same references as in my second post in this thread.

In some tests, I have disabled, in
void psCelClient::HandleMessage(MsgEntry* me) (client/pscelclient.cpp),
the case that handled the CELPERSISTCMD_SEND_ENTITY message. Obviously, it is needed to update the table of the entities in the CEL layer (and the proximityList ?).

The test, done between 20:49:40 and 21:04:27 (GMT+1), went as follow. I had to log off and on again between each test :

1) 20:49:40, code not disabled : I have experienced #2 in the cellar (confirmed by other players - this one is quite constant) and #3 on the main place with the statue. I was lucky to find this one just then.

2) 20:54:35, code disabled, #3 still there, BUT as soon as I entered the temple and went out (as all the entities were gone from the CEL layer I think ?), I didn\'t feel this \"horrible\" effect at all, though people were complaining a lot about the lag (talking about taking refuge into the temple  8o ). No more #2 when going down and up via the cellar several times.

3) 21:01:30, code enabled, same experience as 2), but I kept feeling the lag when going out of the temple.

4) 21:04:27, code disabled again, same experience as 2), lag when I first spawned on the plaza, a penible crawl to the temple and then coming back. Then everything was smooth !

#3 being \"cancelled\" (if it\'s actually the case) is quite unexpected, I was only after #2.

Maybe I was just lucky, even after repeating this 2 times with both settings. I don\'t pretend to know this part of the code, far from it. I just hope those facts might be of some interest...

PS: I would leave this part of the code deactivated, but unfortunately it\'s not possible to see anyone then  :D  So between the two, I choose the lag.

Draklar

  • Forum Legend
  • *
  • Posts: 4422
    • View Profile
(No subject)
« Reply #10 on: July 26, 2003, 09:44:54 pm »
Quote
Originally posted by chrischoo
I would hazard a guess that the lag you\'re facing is partly due to the fact that the server is halfway around the world. If you were where I am (I\'d say I\'m about 16km from the server, and not 5,000km like some of you) then it certainly doesn\'t look that bad at all.

but it was running pretty smooth for last  month
i hardly ever was getting frozen by lag

I\'m having this problem since few days
AKA Skald

Kluger

  • Hydlaa Resident
  • *
  • Posts: 118
    • View Profile
(No subject)
« Reply #11 on: July 26, 2003, 11:29:32 pm »
I noticed I get bad lag when someone nearby is strafing thru (or stuck in) a wall.

My system:

XP 1700+
2.5GB RAM
2x 80GB 7200RPM IDE
GF4MX440SE 64MB AGP
Linux 2.4.20
client 0.2.010 (if I remember correctly)
using openGL

I, too, noticed it started happening lately.  At first, PS just ran about like early EverQuest.  As I\'m on my 4th character, it seems like the problem temporarily goes away when I make a new character, but don\'t hold me to that.  Installing the PS client fresh in another OS doesn\'t seem to make any difference.

Quote
Do you think it would run better on RedHat 9? I already have my system set up to dual-boot, but I\'m not restarting unless it\'s actually going to help any  Any suggestions on times that it isn\'t so laggy? Is it caused by a lot of users? Or just random times?


I strongly recommend against Red Hat 9 (for plenty of reasons).  Red Hat 8.0 is my favored Linux, and I recommend it to you, as well.  (Red Hat 9 adds a couple small conveniences, removes a few convenient programs, and adds a TON of major bugs...and instead of ironing them out, Red Hat has just put out another beta!)  I\'d be quite

I can vouch for that the Linux version runs better than the Windows version.  I\'m kinda surprised, since it\'s usually the other way \'round when software is made for both Win and Lin, for whatever reason.  A couple advantages to the Linux version include that it properly queues the backspace while lagging (where Windows will only backspace once per frame).

(Now I should point out that somehow the Windows client plays very fast in the old Rage 128 chips under Win98 only...though there are huge graphical glitches, like houses disappearing, but it is indeed very fast.)

Sometimes, I get a stall (in RH 8, it just stalls at 100% CPU usage, in RH 9 it stalls at 0%, but the effect is exactly the same, and I think RH 9 is mistaken) right after music has loaded.  I assume that\'s not what you\'re talking about.

Quote
then the famous \"lag\" that makes people cry in despair. Usually, this is specific to an area of the world. Everyone in it (except one lucky player I know of ) experiences difficulties like the one you described. Then it goes as suddenly as it comes. Scientists and computer psychiatrists are working on it


Just yesterday, I made a direct correlation to strafing thru walls.  We were partying in a hallway underground, and ppl started climbing up on the corners.  Several players got stuck part way into the corner posts, and the lag started.  I told everyone to get down, and presto! the lag disappeared.  I told someone to test it out a couple more times, and like a switch, the lag turned on and off.  Tycho dropped in part way through the ceiling, and I was stuck almost a minute between frames.  He /spawn\'d and all was instantly better.  Now, I don\'t know if this is the cause of all lag, but it would explain why there is more lag in the plaza (un-updated players falling into the floor).  I also don\'t know if this causes lag in all clients, in all areas, etc...

Quote
I would hazard a guess that the lag you\'re facing is partly due to the fact that the server is halfway around the world. If you were where I am (I\'d say I\'m about 16km from the server, and not 5,000km like some of you) then it certainly doesn\'t look that bad at all.


followed by:
\"but it was running pretty smooth for last month
i hardly ever was getting frozen by lag

I\'m having this problem since few days\"

Same here.  My ping times are around 260ms, and when it stalls, my network activity is at 0%.  (In fact, it\'s always at 0% in Planeshift, except when I first log in.)

Quote
Perhaps... (and this is only a guess)... There is a difference when the PS server is run under RH8.0 as opposed to 7.3? I am more inclined to think it more as a software problem. Either that or there is something really strange about that switch we installed... Our Counterstrike servers aren\'t complaining though.


I agree.  I\'d guess there wouldn\'t be any major difference between RH7.3 and RH8.0.  The differences between RH7.3 and RH8.0 are basically the GUI and GCC (hence the new major version number).  Heck, even the kernel is from the same branch out of the box, and with up2date, you probably had a 2.4.20-19 kernel.  Now if you had updated to Red Hat 9, you\'d have created a primitave way to kill characters.  ;)

\"Thanks folks!  I\'ll be here all night!\"
Read my Say\'s Law paper on my homepage!
I\'m here to test Linux PS and maybe find a friend or even a girlfriend, and jump from rooftop to rooftop.  ;-)
\"Despised and rejected, acquainted with grief, He bore the sins of the world.  He was wounded for our transgressions, bruised for our iniquities.\"

CadRipper

  • Hydlaa Citizen
  • *
  • Posts: 487
  • merry troublemaker
    • View Profile
(No subject)
« Reply #12 on: July 27, 2003, 12:30:40 am »
Quote
Originally posted by Kluger
Just yesterday, I made a direct correlation to strafing thru walls. We were partying in a hallway underground, and ppl started climbing up on the corners. Several players got stuck part way into the corner posts, and the lag started. I told everyone to get down, and presto! the lag disappeared. I told someone to test it out a couple more times, and like a switch, the lag turned on and off. Tycho dropped in part way through the ceiling, and I was stuck almost a minute between frames. He /spawn\'d and all was instantly better. Now, I don\'t know if this is the cause of all lag, but it would explain why there is more lag in the plaza (un-updated players falling into the floor). I also don\'t know if this causes lag in all clients, in all areas, etc...


I had this impression several times, actually, and I\'m not the only one.

From what I\'ve observed (and this was said by others too), this phenomenon is localized, and seems to be experienced by everyone in the area. If you can get out from this area, everything gets back to normal for you, not the others still in the area (you can see them - it\'s scary).

Kluger

  • Hydlaa Resident
  • *
  • Posts: 118
    • View Profile
(No subject)
« Reply #13 on: July 27, 2003, 01:51:42 am »
Have you found it to be overall much less laggy when running around looking for crystals?  I seem to get stuck or slowed way down when I sit still and start chatting...
Read my Say\'s Law paper on my homepage!
I\'m here to test Linux PS and maybe find a friend or even a girlfriend, and jump from rooftop to rooftop.  ;-)
\"Despised and rejected, acquainted with grief, He bore the sins of the world.  He was wounded for our transgressions, bruised for our iniquities.\"