Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Is there a way to track the source of Lag?

Kitty Barnett
Registered User
Join date: 10 May 2006
Posts: 5,586
09-26-2008 17:37
From: VonGklugelstein Alter
the problem is that I freeze often at Brithy's to the point where I cannot move for a minute or more sometimes.
Does your puter freeze up (nothing works), or does your avie freeze up (won't move but you can still cam around and turn in place)? :confused:

If it's the latter (the former would imply a problem on your end) try opening View / Statistics Bar and look for "Time Dilation" (you may have to expand the Simulator section).

If it's between 0.9x and 1.0 then nothing is really wrong (1.0 or 0.99 is what you'd want), if it's any lower than that, scroll down to "Time (ms)", expand it and look at what the sim is spending it's time doing.

The actual "simulation" part on the server runs at 40 frames per second, so anything under 25ms/frame is fine (but you'd know it's from the time dilation already since they both represent the same thing).

You might want to keep an eye on "Ping Sim" as well if you're freezing up, as well as "Packet Loss" (although in both cases you'd be experiencing "rubberbanding" while moving which you didn't say was happening so those are likely just fine).

Finally, if you're having trouble and someone else who's there at the exact same time isn't then the problem is definitely not on SL's end or you'd both be experiencing the same problems. (Note that it doesn't work the other way around. If both of you are experiencing the same thing you can't really draw any conclusions in the general case)
Baloo Uriza
Debian Linux Helper
Join date: 19 Apr 2008
Posts: 895
09-27-2008 23:01
From: Brenda Connolly
He said LAG......


Never mind that LL has a datacenter in Frisco.
Baloo Uriza
Debian Linux Helper
Join date: 19 Apr 2008
Posts: 895
09-27-2008 23:07
From: VonGklugelstein Alter
the problem is that I freeze often at Brithy's to the point where I cannot move for a minute or more sometimes. I also crash sometimes when I freeze like that. Lag Meter shows a below avg frame Rate due to textures loading or too complex of objects in the scene. I always start out being able to move flawlessly and things rez fairly fast for me, but the longer I stay there the worse it gets.


Sounds like your draw distance or detail is set too high, probably the draw distance more than anything. The less bandwidth you have, the less capable the GPU and the less video RAM you have, the shorter your draw distance should be. I crank this down and find turn it up gradually until I find a draw distance that's reasonably long without creating lag for myself. This is about the only way to manage the situation if you're on someone else's wifi, or you're on an less capable machine.

From: someone
one of my suspicions is that somehow, because I am working with a lot of textures my cache is filling up and is causing problems somehow. I clear it occassionally and also run cleaning utilities to get rid of memory dumps which seem to happen a lot with SL..


The SL cache works like a web browser cache and tends to work reliably when the asset and inventory servers are working fine. Odds are you'll have some substantial bandwidth savings and faster draw times on places you frequent if you crank the cache size as large as you have hard drive space for, and only clear it if you were online when the asset server or inventory server is screwing up, or objects you see are drastically different in appearance than what others are seeing. Both events are fairly rare.
Jack Belvedere
GOHA Commissioner
Join date: 4 Aug 2004
Posts: 270
09-29-2008 20:12
This is a little long, but worth reading and quite helpful. My friend Neo jotted this down and we use the advice for our hockey league games, which can be laggy if there's a lot of folks around.
-----------------------------------------------------------------------------------------------------

Getting the most out of SL. (How to reduce your lag)
The #1 cause of lag in Second Life, is client side.
CTRL-ALT-SHIFT- 1 Will show you your client side FPS.

The Second Life client is a mash-up of all sorts of technologies, so many in fact I think it's a god damned miracle that we have it. It is basically, a real time 3d version of the internet. So if we want to make Second Life run better we have to understand everything that is in the preferences menu (CTRL-P). But before we get to any of that, we need to know our own computer a bit better than we know now. Think of SL as the body of your car. While the body can be great, the car isn't going to go anywhere fast if the engine is not well maintained.

Like any and all overhauls, we'll start with cleaning, and a tune up.
(These steps are optional but recommended, and for advanced users)

The first thing we should do is clean up the hard drive, then defragment it. This is important because SL uses the hard drive for it's cache, and if it's cache is all in one place all nice and organized, SL won't spend so much time looking for that one texture to apply to a prim when you already have it downloaded. In most cases the hard drive is the slowest part of your computer.

I would suggest downloading a program called CCleaner. It used to be called Crap Cleaner back in the day before they got popular. CCleaner should analyze then get rid of all the junk files on your hard drive. As a user it's your responsibility to review files before you delete them.

The second step is to update your network and graphic card drivers. (Note: The Windows Update Feature can most likley do this for you, but you must select custom and browse to the hardware portion of the update. )
To find out what drivers you have do the following: Right click My computer, then hit properties. There should be a tab there called Hardware. Now click the button called Device Manager. You should be presented with a list of components your computer has. Expand Display adapters and take note of the device(s) in there on a spare sheet of paper, you can ignore the ones with secondary. They are just the same driver in case you want to enable dual monitor output. Now expand Network adapters. There's a few in there, but the one you want to look for is *NOT* the 1392 Net Adapters. For instance I have a Killer NIC NDIS EDGE Interface. That would be my choice. Write that down too.

Now with both drivers written down, browse to google.com and type one of the drivers in and the word download. You should be brought to a page where you can download, or it has download instructions or whatever. Download then install or upgrade via the drivers instructions.

Why did we download new network drivers you ask? Secondlife is a VERY VERY network intensive program. It's constantly throwing object updates at your computer, downloading textures, shapes info, chat, voice, everything. Odds are your computer will benefit from such a driver upgrade.

Next, we need to optimize the way windows handles network traffic between you and your IP. A long time ago I used to use a program called SG TCP Optimizer. Without going into technical detail, It's good for making the proper registry adjustments to make the most of your internet connection all around.

Run a defrag. Take a nap come back when it's done. Restart your computer.

Now to work on the SL client to make it fit your needs.


Now that we've gotten this far, start Second Life but don't log in, click preferences, under the network tab clear your cache, under the advanced graphics tab check box "Auto-detect graphics hardware on next startup", hit apply, okay, and close second life.

Lets head over to http://speedtest.net/. Run the test there and write down your download kb/s. Move the decimal one place to the left. That is a safe number to use for "Maximum Bandwidth" in the Network tab of SL. For instance mine is 6047, so my Maximum bandwidth is 604. The SL servers need to know how fast they can send information do you, so setting this too high will only cause you to get a lot of packet loss, and lag. Too low and it's not optimal.

Lets start Second Life but not log in again. Lets go to the network tab and plug in our Maximum Bandwidth number. See the Disk Cache Size slider? I would suggest setting it anywhere from 500-1000. SL will have 500-1000 MB of data on your hard drive. Why so much? If we don't have a lot, Second Life will have to re-download that content to your hard drive causing more client side lag as things take time to rez in. The more disk cache you have the better. If you didn't have a Disk Cache second life would have to re-download content all the time. Having content on the hard drive is much quicker than downloading them.

Graphics Tab:

There's several things to consider when running SL. The first is the resolution if you do not run in a window, or the window size if you do. The bigger the window, or resolution setting the more time it will take for your graphic card to render the scene. If SL is laggy you might want to consider lowering the resolution you run it at, or running it in a smaller window.

Draw distance:
I personally have mine at 128, which is FOUR times as much data downloading and graphic rendering than 64. You have to keep in mind that screen resolutions and draw distance every time you double the number, your quadrupling the processing needed to render the scene.

These are the only two things in this tab that really affect the practical performance of SL.

Graphics Detail Tab:

Enable Vertex Shaders:
Vertex shaders are all the nice pretty effects in SL, rippling water, and all the effects of the upcoming Windlight viewer. In general if your graphics card supports it you might want it enabled. However leaving it disabled will save you some FPS. You need to enable vertex shaders to enable the Avatar Vertex Program.

Enable Bumpmapping and Shiny:
If you enable this objects that are textured in SL may appear to be shiny, or have a sort of fake 3d effect called Bumpmapping.

Avatar Vertex Program:
In general leaving this enabled does make SL run faster. You should only disable this if your avatar renders funny or mis-colored. There is a lot to be desired as to how well SL renders avs.

Normal, Bump Mapped, Bump Mapped & Cloth:
While writing this, I don't think I've ever noticed the effect of bump mapped on an Av before. I've seen the cloth effect though! It makes SL clothes wiggly in the wind and when flying. If you want more FPS just leave this at normal.

Sun and moon or Nearby local Lights:
This can make a big difference in your FPS jump if your graphics card isn't up to the task of rendering more than just the sun and moon. Local lights renders the nearest 5 light sources, coloring the surroundings appropriately. Leaving it on Sun and moon is a big FPS difference to some people.

Terrain Detail: Low and High.
Remember that double the numbers = 4 thing we talked about? If you set the terrain to low, the ground might look like smeared mud, but it will have less of a footprint in the viewers memory. I personally can't stand low, and leave mine on high.

Mesh Details:
These can make all the difference in the world. And you can see it in action! CTRL-SHIFT-R brings up the wireframe view. Adjusting these sliders will adjust the number of faces on an object/tree/avatar. If there are less faces to render, there is less processing for SL to do. When faced with massive graphic lag, this is one of the things you should adjust first.

Adv. Graphics Tab:

Anisotropic Filtering:
Anisotropic Filtering is a process which smoothes out the sharp edges in a rendered scene. It is also very graphic intense! Enable it if only you're more than comfortable with your current FPS, because this is a big hit.

Enable VBO:
OpenGL Vertex Buffer Objects (PDF) should only be disabled if it's causing SL to crash. What this does (I assume) is store object shape data in memory, probably graphic card memory. So the CPU can work on it's own thing.

Graphics Card Memory:
Set this to the amount of onboard ram your graphics card has.

Max Particle Count:
I know some people have problems with a screen full of particles, so lowering this will help in particle intensive situations.


Outfit Composite Limit:
Lower is faster.

Extra tips!

Disable Flexible Objects: ( CTRL-ALT-f9 )
Disable Trees: ( CTRL-ALT-SHIFT- 3 )
Disable Grass: ( CTRL-ALT-SHIFT- 0 )
Disable Clouds: ( CTRL-ALT-SHIFT- - )
Disable Particles: ( CTRL-ALT-SHIFT- = )
Disable Simple
Disable Surface Patch
Disable Ground

LEAVE ON ALPHA AND PARTICLES AND VOLUME AND CHARACTER

If you have a multi-core CPU: Client > Rendering > Run Multiple Threads helps a bit.

Having two gigs of Ram makes a fantastic difference in SL, and is the cheapest hardware upgrade.

If you have a gig or more of ram and a broadband connection, I would suggest disabling Object - Object Occlusion ( CTRL-SHIFT-O ). Initial rez times will increase (minorly) but you won't have that problem where you turn and SL hangs for about 5 seconds while it thinks if it should show an object behind another object.
---------------------------------------------------------------------------------------------------
_____________________
Jack
http://www.globalonlinehockeyassociation.com

Ordinal Malaprop- "I was out shopping for napalm suppositories the other day and these three characters come along."
Lear Cale
wordy bugger
Join date: 22 Aug 2007
Posts: 3,569
09-30-2008 08:44
Great post, Jack, thanks for sharing. I knew much of that but still learned quite a bit. One of these days I'll start a Wiki entry (like, when SL's down) and I'll be sure to include your tips.
_____________________
VonGklugelstein Alter
Bedah Profeshinal Tekstur
Join date: 22 Dec 2007
Posts: 808
09-30-2008 15:30
Coolness.. thanks again
_____________________
Winter Ventura
Eclectic Randomness
Join date: 18 Jul 2006
Posts: 2,579
09-30-2008 15:46
Turning on "Display Avatar Rendering Cost" can actually slow your connection down further. So don't leave it on.

Turn down your draw distance (mine's at 128 and SL seems fine to me).. and consider disabling the windlight sky and water reflections.
_____________________

● Inworld Store: http://slurl.eclectic-randomness.com
● Website: http://www.eclectic-randomness.com
● Twitter: @WinterVentura
1 2