diff options
author | Xiaohong Bao <bao@lindenlab.com> | 2011-10-21 11:53:29 -0600 |
---|---|---|
committer | Xiaohong Bao <bao@lindenlab.com> | 2011-10-21 11:53:29 -0600 |
commit | dbb353d3b0e5cf3aa9d4d8062c527bb52171ef15 (patch) | |
tree | d0b78a18caabc03921684c4cc74a40465e3f027c /indra/newview/llviewertexturelist.cpp | |
parent | 897972636d0fdd0c6dc76e1a337bb43e1aa9bc0c (diff) |
fix for SH-2516: Full Bright Geometry Rendering Increases Rapidly, Destroying Frame Rate.
Diffstat (limited to 'indra/newview/llviewertexturelist.cpp')
-rw-r--r-- | indra/newview/llviewertexturelist.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/indra/newview/llviewertexturelist.cpp b/indra/newview/llviewertexturelist.cpp index 30ef8b8a29..92d2762ef3 100644 --- a/indra/newview/llviewertexturelist.cpp +++ b/indra/newview/llviewertexturelist.cpp @@ -1053,6 +1053,13 @@ S32 LLViewerTextureList::getMaxVideoRamSetting(bool get_recommended) // Treat any card with < 32 MB (shudder) as having 32 MB // - it's going to be swapping constantly regardless S32 max_vram = gGLManager.mVRAM; + + if(gGLManager.mIsATI) + { + //shrink the availabe vram for ATI cards because some of them do not handel texture swapping well. + max_vram *= 0.75f; + } + max_vram = llmax(max_vram, getMinVideoRamSetting()); max_texmem = max_vram; if (!get_recommended) |