• 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-12540
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Runitai Linden
Reporter: Luricos Alderton
Votes: 10
Watchers: 9
Operations

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

RenderDeferred / obsolete OpenGL libs in RC / FPS drops down to 2fps

Created: 22/Mar/09 11:10 AM   Updated: 17/Sep/09 10:58 AM
Return to search
Component/s: Graphics, Source Code
Affects Version/s: 1.22
Fix Version/s: None

File Attachments: 1. Text File fixables-sl_1.22.11-r113976.txt (6 kB)
2. Zip Archive OpenGL_headers.zip (72 kB)
3. Text File SecondLife-after_patch.log (56 kB)
4. Text File SecondLife-before_patch.log (41 kB)
5. Zip Archive sl_1.22.11-r113967_usedFiles-boost-libs-p1.zip (8.54 MB)
6. Zip Archive sl_1.22.11-r113967_usedFiles-boost-libs-p2.zip (2.11 MB)
7. File slviewer-0-v122110-OpenGLFixed.patch.bz2 (19 kB)
8. Text File VWR-12540_render-patch.patch (7 kB)
9. Zip Archive sl_1.22.11-r113967_usedFiles-with-boost-libs_placeholders.zip (959 kB)

Image Attachments:

1. Snapshot_Help-Island.png
(694 kB)
Environment:
Compiled Version: sl_1.22.11-r113976 RC

OS: Windows Vista 64-bit
Processor: AMD X2 6400+
Video: ATI HD 3870 SCS-3 512 MB RAM
System RAM: 4 GB DDR2

Compiler: Visual Studio 2008 Express (VC++2008Express)
Issue Links:
Parent/Child
 
Relates
 

Last Triaged: 17/Sep/09 09:33 AM
Linden Lab Issue ID: DEV-29507
Patch attached: Patch attached

Sub-Tasks  All   Open   
 Sub-Task Progress: 

 Description  « Hide
Hi,

i had many performance issues while using the current RC of SL Viewer like fps drops to 2fps while moving or changing my position. Everythime a new Object was build (thats normal when you move arround xD) my fps drops to 2fps like a dia show. Not useable.

First i started with debugging my log files. Intresting Lines where found as listed:

2009-03-16T23:59:40Z INFO: LLViewerJointMesh::updateVectorize: Vectorization : DISABLED
2009-03-16T23:59:40Z INFO: LLViewerJointMesh::updateVectorize: Vector Processor : COMPILER DEFAULT
2009-03-16T23:59:40Z INFO: LLViewerJointMesh::updateVectorize: Vectorized Skinning : DISABLED
2009-03-16T23:59:40Z WARNING: LLFeatureList::isFeatureAvailable: Feature RenderCubeMap not on feature list!
2009-03-16T23:59:40Z INFO: LLAppViewerWin32::initHardwareTest: Detected VRAM: 0

2009-03-16T23:59:40Z WARNING: LLGLManager::initWGL: No ARB WGL render texture extensions

2009-03-16T23:59:40Z INFO: LLGLManager::initExtensions: Couldn't initialize GL_ARB_point_parameters
2009-03-16T23:59:40Z INFO: LLGLManager::initExtensions: Disabling mip-map generation for ATI GPUs (performance opt)

2009-03-16T23:59:40Z INFO: LLViewerImageList::updateMaxResidentTexMem: Total Video Memory set to: 65 MB
2009-03-16T23:59:40Z INFO: LLViewerImageList::updateMaxResidentTexMem: Available Texture Memory set to: 49 MB

I couldn't imagine why my VRAM / Total Video Memory was not detected correctly or why my card dont have GL_ARB_point_parameters. I have a brand new card that has OGL 2.0 inside. All those features used by SL Viewer should match OGL 1.2/1.4 Specs.

Well i testet those Extensions with a program called "GPU Caps Viewer". Everything was fine. So i reckon that the detection routine is faulty.

After building up an Compiler Environment (http://wiki.secondlife.com/wiki/Microsoft_Windows_Builds) and following instructions how to build the RC with Visual C++ 2008 Express which is needed cause 2005 is not compatible with Vista, and fixing those boost problems (http://wiki.secondlife.com/wiki/User:Jodiah_Jensen#STEP_1_-_Downloading_the_boost_source_code) i started compiling the source and later .... debugging.

After i've updated glext.h, glxext.h, wglext.h downloaded from (http://www.opengl.org/registry/) and replacing glh_genext.h with an generated one produced by "extgen" parser (listed inside attached text file) to ensure detection of gl extensions and updated ogl code and changing some lines inside the code described in atteched file "fixables-sl_1.22.11-r113976.txt" and applied my patches my fps raised up to ~14 ~18 fps measured at Help Island.

Now i can move a bit better than before but viewport changing that trigger loading of new objects and textures is still a bit laggy so i started debugging again focusing if i can enable RenderDeferred in 1.22 RC.

Sadly i ended up with "cant fix it" cause this is beyond my area of expertise. But i've found out that the territory textures will be shown if "Basic Shaders" is disabled regardless wich detail level is chosen. It is not possible to change the detail level in-game cause if i switch from low to medium basic shaders will be activated and textures will hide as seen in attached file named "screenshot" while RenderDeferred set to TRUE.

As i figured out it still exists a jira entry about the RenderDeferred issue in 1.22 so i guess deferred rendering is not fully implemented in 1.22 RC. But i think it will be in 1.23 as an jira entry allocates (VWR-12314)

Note: Textures were only rendered after restart with RenderDeffered enabled so i tried to find out whats the difference between startup rendering and changing options inside the the viewer after startup but i ended an "main loop" process that tests if the main window has a focus or is minimized ..... so i stopped right now with debugging. Maybe this feature is fully functional in 1.23?

Would be nice to see that the 1.23 branch has then updated oGL libs and another glh_genext.h file to support WGL_ARB and other extensions With the generated one and updated ogl libs i dont had those warnings during startup =.=

Please take a look at the glgui project inside the attached text file. Maybe this will be usefull for you in further releases?

Last-mentioned i've changed the detection routine of SSE / SSE2 .. i dunno if SSE / SSE 2 is then activated ingame. Furthermore some dev note inside the code noticed "i have to use the sse and sse2 optimized libs". Another Part that is beyond my area of expertise. I didn't crawl through the entire code (for me it feels like i did xD) just focused it to some GL detection stuff.

Summary:

Regards,

Luricos



 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Luricos Alderton made changes - 22/Mar/09 11:11 AM
Field Original Value New Value
Attachment Snapshot_Help-Island.png [ 22759 ]
Luricos Alderton made changes - 22/Mar/09 11:12 AM
Luricos Alderton made changes - 22/Mar/09 11:25 AM
Luricos Alderton made changes - 22/Mar/09 11:27 AM
Luricos Alderton made changes - 22/Mar/09 11:28 AM
Comment [ added compiled boost libs for VC90 (combine it with patch zip) (part two) ]
Luricos Alderton made changes - 22/Mar/09 11:28 AM
Comment [ added compiled boost libs for VC90 (combine it with patch zip) (part one) ]
Luricos Alderton made changes - 22/Mar/09 11:28 AM
Comment [ added Patch Package without Boost libs cause this reaches the upload limit xD ]
Luricos Alderton made changes - 22/Mar/09 11:28 AM
Comment [ added Screenshot with RenderDeferred enabled, Basic Shaders disabled ]
Harleen Gretzky made changes - 22/Mar/09 12:00 PM
Component/s Source Code [ 10081 ]
Harleen Gretzky made changes - 22/Mar/09 12:02 PM
Issue Type Meta Issue [ 6 ] Bug [ 1 ]
Luricos Alderton made changes - 22/Mar/09 12:30 PM
Attachment VWR-12540_render-patch.txt [ 22763 ]
Harleen Gretzky made changes - 22/Mar/09 12:40 PM
Patch attached [Patch attached]
Alexa Linden made changes - 24/Mar/09 09:33 AM
Last Triaged 23/Mar/09 09:33 AM
lindenrobot made changes - 24/Mar/09 09:33 AM
Last Triaged 23/Mar/09 09:33 AM 24/Mar/09 09:33 AM
Linden Lab Issue ID DEV-29507
Luricos Alderton made changes - 26/Mar/09 11:00 AM
Attachment VWR-12540_render-patch.txt [ 22763 ]
Luricos Alderton made changes - 26/Mar/09 11:01 AM
Attachment VWR-12540_render-patch.patch [ 22832 ]
Luricos Alderton made changes - 26/Mar/09 11:11 AM
Attachment VWR-12540_render-patch.patch [ 22832 ]
Luricos Alderton made changes - 26/Mar/09 11:11 AM
Attachment VWR-12540_render-patch.patch [ 22833 ]
Boy Lane made changes - 29/Mar/09 12:33 AM
Attachment slviewer-0-v122110-OpenGLFixed.patch.bz2 [ 22879 ]
Attachment OpenGL_headers.zip [ 22880 ]
Boy Lane made changes - 31/Mar/09 11:43 PM
Link This issue is related to by VWR-12080 [ VWR-12080 ]
Boy Lane made changes - 31/Mar/09 11:45 PM
Link This issue is related to by VWR-12080 [ VWR-12080 ]
Boy Lane made changes - 31/Mar/09 11:45 PM
Link This issue Relates to VWR-12080 [ VWR-12080 ]
Runitai Linden made changes - 06/Apr/09 09:21 AM
Assignee Runitai Linden [ Runitai Linden ]
Runitai Linden made changes - 06/Apr/09 09:24 AM
Link This issue Relates to VWR-12719 [ VWR-12719 ]
Runitai Linden made changes - 06/Apr/09 09:33 AM
Link This issue child of VWR-12719 [ VWR-12719 ]
Ellla McMahon made changes - 08/May/09 01:57 PM
Link This issue Relates to VWR-6654 [ VWR-6654 ]
Rob Linden made changes - 16/Jul/09 10:41 AM
Last Triaged 24/Mar/09 09:33 AM 16/Jul/09 09:33 AM
Alexa Linden made changes - 17/Sep/09 10:58 AM
Last Triaged 16/Jul/09 09:33 AM 17/Sep/09 09:33 AM