History | Log In     View a printable version of the current page.  
  • All submissions to this site are governed by Second Life Project Contribution Agreement. By submitting patches and other information using this site, you acknowledge that you've read, understood, and agreed to those terms.
Issue Details (XML | Word | Printable)

Key: VWR-3084
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Critical Critical
Assignee: Tofu Linden
Reporter: Henri Beauchamp
Votes: 6
Watchers: 4
Operations

If you were logged in you would be able to see more operations.
1. Second Life Viewer - VWR

Dramatic drop in frame rate after the first use of the new search engine.

Created: 14/Nov/07 04:17 AM   Updated: 24/Dec/07 01:37 AM
Component/s: User Interface
Affects Version/s: 1.18.5 Release Candidate
Fix Version/s: 1.18.5 Release Candidate

File Attachments: 1. Text File DEV-6030.patch (5 kb)

Image Attachments:

1. updatetexstats.jpg
(124 kb)
Environment:
Mandriva 2007.1
Linux v2.6.23.1 vanilla kernel
Nvidia 7600GT
Nvidia 100.14.19 driver

From the About box:

Second Life 1.18.5 (0) Nov 13 2007 10:39:40 (Second Life Release Candidate)

You are at 262894.0, 236433.8, 600.8 in Ahndang located at sim352.agni.lindenlab.com (69.25.104.38:13004)
Second Life Server 1.18.5.73200

CPU: AMD Athlon(tm) XP 3200+
Memory: 2535 MB
OS Version: Linux 2.6.23.1 #2 Wed Oct 24 21:05:14 CEST 2007 i686
Graphics Card Vendor: NVIDIA Corporation
Graphics Card: GeForce 7600 GT/AGP/SSE/3DNOW!
OpenGL Version: 2.1.1 NVIDIA 100.14.19
LLMozLib Version: 1.1.0 (Mozilla GRE:1.8.0.12_0000000000)
Packets Lost: 9/1583 (0.6%)
Viewer Digest: 8d97103a-c114-7dfe-f2bd-e431ed6a8932
Issue Links:
Duplicate
 

Linden Lab Issue ID: DEV-6030


 Description  « Hide
Just after using the search engine of the new v1.18.5.0RC viewer, the frame rate drops by over 50% (and below 10fps).

Steps to reproduce:

- Start the v1.18.5.0RC viewer.
- Teleport into an almost empty sim.
- Show the stats bar.
- Wait a few minutes to make sure all textures are loaded and all objects are rezzed.
- Move around (actually, move in circle to make sure you stay at the same place and keep the same 3D environment) and take note of the frame rate.
- Open the search tab and search for anything in the "All" tab (new, web based search engine).
- Close the search tab.
- Move around again and see how the frame rate dropped, and how the once smooth motion is now "quantized"...

My guess is that somehow the mozlib stuff which is loaded by the search engine keeps claiming CPU power even after the search tab is closed...

Almost a show stopper !

 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Henri Beauchamp - 14/Nov/07 08:11 AM
I just tested it with the official release candidate (previous test was made with a self-compiled viewer): the slow down is even worst. In my skybox, the frame rate goes from 45fps before the search, to 10fps after the search... A 4.5 factor !

Lex Neva - 14/Nov/07 09:18 AM
Oddly enough, when I did this, my framerate increased.

Second Life 1.18.5 (0) Nov 13 2007 10:25:05 (Second Life Release Candidate)

You are at 245961.3, 254553.2, 401.1 in Suffugium located at sim4895.agni.lindenlab.com (64.129.47.149:13006)
Second Life Server 1.18.5.73200

CPU: AMD Athlon 3700+
Memory: 1024 MB
OS Version: Microsoft Windows XP Service Pack 2 (Build 2600)
Graphics Card Vendor: NVIDIA Corporation
Graphics Card: GeForce 6800 GS/PCI/SSE2/3DNOW!
OpenGL Version: 2.1.1
LLMozLib Version: 1.1.0 (Mozilla GRE:1.8.0.12_0000000000)
Packets Lost: 94/7729 (1.2%)
Viewer Digest: 3fb7fa44-f6ab-e2be-f03d-dcdc760d431a

Asriazh Frye - 14/Nov/07 11:26 AM
This seems to be what I am experiencing too. I already commented on it on the SL forum. This is what i wrote:

Like with the REV130 SVN version, i get a horrible fluttering stutter of FPS after i opened the new search tab and closed it again with the official 1.18.5.0 RC. This goes away after a while when I keep the new search window open for about 5 minutes or so, but comes back when i close it. The only way to have no fluttering FPS is to open the new search window, wait until it calmed down, switch to another search tab and then close the window. Could this have to do with the google-perftools (namely libstacktrace and libtcmalloc)?

-Asriazh

P.S.:
Some informations about my PC

CPU: AMD Athlon(tm) 64 Processor 4000+
Memory: 2027 MB
OS Version: Linux 2.6.24-rc2-git2 #1 SMP Sun Nov 11 16:32:19 CET 2007 i686
Graphics Card Vendor: NVIDIA Corporation
Graphics Card: GeForce 7600 GT/PCI/SSE2/3DNOW!
OpenGL Version: 2.1.1 NVIDIA 100.14.23
LLMozLib Version: 1.1.0 (Mozilla GRE:1.8.0.12_0000000000)

Asriazh Frye - 14/Nov/07 12:04 PM
I was just messing around with the 1.18.5.0 RC viewer a bit more and found out the framerate flutter and drop disappears as soon as you switch off "dynamic textures" (ctrl+alt+f4).

-Asriazh

Lex Neva - 15/Nov/07 09:38 AM
Two reproductions on linux. Is this a linux-only bug?

James Linden - 15/Nov/07 02:56 PM
Can anyone on Mac comment on this? I do not see this on my Windows Core 2 Duo, Radeon X1300.

I wonder if this is our Linux Mozilla implementation doing something dumb, like constantly polling the page.

Tofu Linden - 15/Nov/07 03:19 PM
All three Mozilla back-ends constantly poll the page (15Hz!), but this is probably rather more expensive to do on Linux due to the architecture (and hackery of llmozlib). The real bug would be that polling doesn't get suspended while the widget is hidden. I'll verify that this is happening.

Braya White - 16/Nov/07 12:56 PM
I've attached a screen shot of the frame console after having opened and then closed the New Search feature.

As you can see, there is an immense amount of time being spent on UpdateTexStats.

Matthew Dowd - 18/Nov/07 10:05 AM
I'm seeing this on Windows. In general the frame rate degrades to slide show after about 5-10 minutes regardless what I do, but opening the new search causes the degradation to happen far quicker.

Henri Beauchamp - 18/Nov/07 04:58 PM
@Matthew

I think the problem you are encountering is a different issue (memory leaks leading to a full memory and the start of swapping, most probably).

The issue we are speaking about is an -immediate- slow down after the search tab had been used. It seems to affect only the Linux version of the viewer.

Tofu Linden - 19/Nov/07 10:07 AM
I've confirmed that (in this case) we keep asking Mozilla to give us updates even when this cannot be useful, which seems to be the underlying problem. Will look into a fix soon and post a patch here.

It's very likely that this does indeed affect all platforms, but is particularly noticable on Linux where the operation is a lot more expensive.

Tofu Linden - 20/Nov/07 09:18 AM
Attaching patch.

The LLPanelDirBrowser widget was observing visibility changes but
then forgetting to propagate that information to its children as
LLView subclasses are expected to - thus the LLWebBrowserCtrl
never learned that it was invisible so never stopped expensively
polling for updates.

LLFloaterChat, LLMenuItemBranchGL and LLWebBrowserCtrl itself
commit the same sin which the patch also corrects, though the
typical children (where applicable) of these widgets don't
actually care right now.

Tofu Linden - 20/Nov/07 09:20 AM
Thanks for the bug report!
The fix is expected to be in the next 1.18.5 Release Candidate.

Henri Beauchamp - 21/Nov/07 10:57 AM
Thanks for the patch, Tofu. I can now use (and test) the release candidate. :-)

Tofu Linden - 21/Nov/07 12:09 PM
Hooray!

Asriazh Frye - 21/Nov/07 01:43 PM
I applied the patch to the 1.18.5.1 source and can confirm this. Framerates now go back to normal as soon as you use a different tab than the new search or close the search window alltogether. Can we have the windlight source to play with now please? ^_^;

-Asriazh

Nicholaz Beresford - 03/Dec/07 07:40 AM

Isn't that "fixed" with the 1.18.5.3 public?

WarKirby Magojiro - 22/Dec/07 01:10 PM
I've changed all fixed internally issues to Resolved: Fix pending.

Henri Beauchamp - 24/Dec/07 01:37 AM
This issue was fixed in v1.18.5.1RC and never crept back up since.

Closing as Fixed.