• 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 have read, understood, and agreed to those terms.
MAINTENANCE ANNOUNCEMENT - JIRA will undergo maintenance starting 1:00am PDT through 3:00am on Saturday 2010.03.20. Please do not enter issues during this time as the system maybe restarted.
Issue Details (XML | Word | Printable)

Key: VWR-226
Type: Bug Bug
Status: Resolved Resolved
Resolution: Duplicate
Priority: Major Major
Assignee: Unassigned
Reporter: Zorin Frobozz
Votes: 5
Watchers: 0
Operations

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

Excessive GL memory usage in latest First Looks causing slowdowns

Created: 12/Mar/07 03:58 PM   Updated: 18/May/07 02:05 AM
Component/s: Graphics
Affects Version/s: First Look: Render Pipeline
Fix Version/s: None

Time Tracking:
Not Specified

Environment:
Mac Pro 2x dual core 2.66GHz woodcrest, 2GB system RAM, ATI Radeon X1900XT with 512MB VRAM
Issue Links:
Relates

Linden Lab Issue ID: SL-37321


 Description  « Hide
The latest First Look (59036) appears to use over twice as much texture memory to render a scene, on average, than an older client, (57947) which is causing major slowdowns once texture memory usage gets over around 350MB on my system. I've heard others experience similar slowdowns after being in a busy area for a while, so this may be related.

The quality of the scene does not look different, so I suspect there is a problem with freeing up GL memory. The problem gets worse the longer you are in a crowded area as more textures load to discard level 0.

Example: In Luskwood right now, 57947 is using 179MB of OpenGL memory (bound) to render the scene. When I log in using 59036 the number eventually climbs over 400MB and Second Life slows to an unusable crawl.

Something changed in texture management between these two versions, apparently.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Lex Neva added a comment - 13/Mar/07 09:19 AM
This sounds serious enough that I don't think it should make it to the main grid. I'm raising the priority from normal to major.

Soft Noel added a comment - 13/Mar/07 06:39 PM
This sure looks related to David Fries' observation.

<<
SMP Performance Degraded

David Fries noted that on his machine, the viewer was relying on a single core more heavily than it had in the past, and overall performance was somewhat degraded. Some experimentation lead to the discovery that cutting his reported graphics memory in half improved performance and multiple core use. He shared a theory about why this may be in an in-world IM, but no fixes yet.
>>
https://wiki.secondlife.com/wiki/SLDev-Traffic_2#SMP_Performance_Degraded


Sandra Greene added a comment - 17/Mar/07 03:27 PM
This could be the same problem I've been experiencing with First Look in the last few weeks.

For testing purposes, I'm sometimes using two instances of Second Life. I've got 2 GB of RAM, AMD 64 3800/X2, GeForce 7600GT (256MB), Windows 2000 SP4, all MS fixes installed, and nothing fancy running in the background.

After 30-40 minutes, both SL instances use up all existing RAM and the PC starts swapping permanently. Each SL then uses about 700-800 MB of RAM, sometimes one of them even uses up to 1 GB. And it's not that I'm doing much - just standing around and looking at the landscape. The performance degrades to about 25%, but the CPU usage is rather low: 20%. The reason for the bad performance is the permanent activity on the harddisk.

When exiting one of the SL instances, the remaining one runs smoothly again. When re-starting a second SL, it doesn't take much time until both use up all available physical memory and the performance degrades again.

I don't know what people are doing who only have 1 GB of RAM or even less. SL must be nearly unusable on those PCs.

Reducing the "graphics memory" in the preferences from 256 MB to 128 MB doesn't change much. SL then uses 600 instead of 700 MB after 15 minutes running time which in my opinion still is way too much for just standing around and doing nothing.

Would be nice if this could be fixed soon!


Yuriko Nishi added a comment - 18/Apr/07 09:17 AM
having similar problems.

after standing in a crowded sim for a while the gl memory goes up to around 400 mb and the computer starts to swap (swap file size can go up to 1.2 gig) so when i turn the camera it gets very choppy. when i turn down the graphics memory in the options to 128 mb (i have 256 on my card) it sometimes helps to improve performance. i first noted that problem after the performance update (the last first look client)

using a windows xp pc with an ati x1600 and 1 gig ram


EnCore Mayne added a comment - 30/Apr/07 07:15 PM
this might be what is assigned to coco linden as a "viewer memory leak" over at vwr-364 reported on 1apr07. that's when i started to have major cpu usage lags. since the first look viewer is now the regular 1.15.0 build 2 viewer the opengl aspect of this might help in resolving the overall general memory bug.

Nicholaz Beresford added a comment - 17/May/07 11:57 PM

Despite the memory leaks, there is currently a logic in place, which allows for a rather large memory (system ram, not video ram) buffer for textures based on the video memory setting. It serves as a first level cache (before going to the disk cache) for textures and can grow up to 1.3 times the video ram (it will start small but as more textures appear, it will fill up to this size). The downside is that it not sufficiently capped by system ram size, which can actually result in slower execution because the system is doing exceess swapping.

it's described in https://jira.secondlife.com/browse/VWR-733


Nicholaz Beresford added a comment - 18/May/07 02:05 AM

I'marking this as resolved/duplicate because it's most likely addressed by VWR-364 and VWR-733 which both are worked on and have patches attached.

Feel free to reopen with more details if you think this is not the case.