• 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.
Issue Details (XML | Word | Printable)

Key: VWR-10463
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Critical Critical
Assignee: WorkingOnIt Linden
Reporter: dan linden
Votes: 2
Watchers: 2
Operations

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

Detected Texture memory of 2016 causes slow texture loading

Created: 12/Nov/08 09:57 PM   Updated: 14/Mar/09 08:42 PM
Return to search
Component/s: Graphics
Affects Version/s: 1.20, 1.21
Fix Version/s: 1.22

File Attachments: None
Image Attachments:

1. negative GL Total.png
(482 kB)
Issue Links:
Relates

Linden Lab Issue ID: DEV-23117
Linden Lab Internal Branch: viewer/viewer_1-22-0


 Description  « Hide
Detected Texture memory of 2016 causes slow texture loading

On machines with lots of RAM, the detected video memory will be too large and cause the upper bound of GL Total to be negative.

Here's an example
System Memory: 4030 MB
Dedicated video memory: 512 MB
Second Life detected texture memory of 2016 MB.

This 2016MB integer flipped and became negative showing up as "GL Tot: 46/ -1450" in the texture console. (see attached "negative GL Total.png") That number should not be negative.

Fix: Changed the representation of total texture memory to MB from BYTE, so the value bigger than 2GB should not turn to be negative.

Workaround: Set your "Preferences -> Graphics -> Hardware Options -> Texture Memory" to a value between 128 and 512 MB. Ideally, set this to your video card's memory or 1/2 of your video card's memory. Experiment.

Additional change: The maximum Texture Memory will be capped at 512 MB. The actual texture memory is max[ low-bound, 1.5 * min[ detected-GPU-mem, user-set-texture-mem, 512MB]]. The low bound of the texture memory is 32MB if the total physical memory less than 1.5GB, or 128MB if otherwise.



 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
dan linden added a comment - 06/Jan/09 03:59 PM
This is supposedly fixed in the 1.22 RCs. Can someone verify this is fixed?

Ramzi Linden added a comment - 14/Jan/09 06:07 PM - edited
EDIT: with a fix to VWR-11780, this description changes slightly. The new minimum is 64MB as mentioned below.
From release notes in 1.22:

The slider in Preferences > General > Hardware Options > Texture Memory (MB) can be now be set only for values within a range of memory that Second Life can properly support. At this time, the texture memory requirements of Second Life are almost always below 512 MB. (Technical Note: the viewer will actually allow itself to use 1.5 times the value set in this slider, in some cases.)

In performance tests of the viewer, it can be counterproductive to allow textures to occupy too much memory, even when the GPU might support more. Too much allocated texture memory can cause memory to become occupied by unused textures, while other necessary textures have no memory left to use; this will routinely slow down the performance, or even crash, especially when some other large applications are running. Many residents who experience crashes have this value set at 512 MB, but find they can eliminate crashing by lowering the Texture Memory to a smaller value such as 256 MB.

Likewise, be aware that setting the Texture Memory too small can cause very frequent texture swapping, making inworld texture loading very slow. To mitigate this problem on some systems, the slider can only be set as low as 64 MB. Thus the detected video memory in Second Life supports a range from 32-512 MB, or 64-512 MB, depending on your system.


starbuckk serapis added a comment - 11/Mar/09 05:05 PM
On an Intel GMA965 Express this needs to allow the 32mb setting. Anything above 32 causes serious freezing. I worked around this in the RC by going to the XML file and changing it in the back door, but have since revered back to 1.21. Please allow GM965's to set back to 32mb.

Or better yet, maybe try to find a way to make SL work with this disaster of a video board.