Source Code Project Mantis - FSSCP
View Issue Details
0001881FSSCPgraphicspublic2009-02-08 00:482010-01-26 23:59
ReporterEchelon9 
Assigned ToEchelon9 
PrioritynormalSeveritymajorReproducibilityalways
StatusresolvedResolutionfixed 
PlatformOSMacOS VersionOS X
Product Version3.6.9 
Target VersionFixed in Version3.6.11 
Summary0001881: Vertex processing reverting to software fallback from the GPU on Mac OS X
DescriptionThe shader vertex processing is reverting to software fallback rendering. This has been reproduced using the 3.6.10 MediaVPs, the latest nightly build r5063 on a GeForce 8600M GT with 10.5.6 Leopard.

As the GLSL vertex shader is being processed by the software renderer, rather than the GPU, a marked performance impact evidenced by a 82x increase in the average time for glDrawRangeElements() is seen, and a huge drop in FPS.

The fragment shader remains running on the GPU.
Additional InformationReproduced by:
- Opening the OpenGL Profiler, and setting it to break on software fallback [1]
- Ensure GLSL is enabled, and then open FS2_Open
- Attempting to enter the Techroom (which will render the Ulysses with fragment and vertex shaders causing the breakpoint to hit on software fallback):

glDrawRangeElements(GL_TRIANGLES, 0, 947, 948, GL_UNSIGNED_SHORT, 0x01bfe200)
    Context: 0x0195ce00
    kCGLCPGPUFragmentProcessing: GL_TRUE
    kCGLCPGPUVertexProcessing: GL_FALSE
    kCGLCPCurrentRendererID: 9732 (0x00002604)

[1] http://developer.apple.com/technotes/tn2007/tn2178.html#TNTAG11
TagsNo tags attached.
Attached Filestxt OpenGLProfiler-break_on_sw_fallback.txt (3,467) 2009-02-08 00:48
http://scp.indiegames.us/mantis/file_download.php?file_id=1232&type=bug
txt slow_glsl.txt (99,439) 2009-02-08 00:49
http://scp.indiegames.us/mantis/file_download.php?file_id=1233&type=bug
txt fast_noglsl.txt (84,507) 2009-02-08 00:49
http://scp.indiegames.us/mantis/file_download.php?file_id=1234&type=bug

Notes
(0010660)
Echelon9   
2009-02-08 00:50   
Also reported by Neoterran and squidsquasher
http://www.hard-light.net/forums/index.php/topic,60044.msg1190615.html#msg1190615
(0011591)
Echelon9   
2010-01-26 23:59   
This no longer occurs with the new unified shader code provided by Hery

Issue History
2009-02-08 00:48Echelon9New Issue
2009-02-08 00:48Echelon9File Added: OpenGLProfiler-break_on_sw_fallback.txt
2009-02-08 00:49Echelon9File Added: slow_glsl.txt
2009-02-08 00:49Echelon9File Added: fast_noglsl.txt
2009-02-08 00:50Echelon9Note Added: 0010660
2009-02-08 00:51Echelon9Statusnew => assigned
2009-02-08 00:51Echelon9Assigned To => Echelon9
2009-02-08 00:56Echelon9SummaryVertex processing reverting to software fallback from GPU on Mac OS X => Vertex processing reverting to software fallback from the GPU on Mac OS X
2009-02-08 00:56Echelon9Description Updated
2009-02-08 05:11Echelon9Additional Information Updated
2009-02-15 01:57Echelon9OS => Mac
2009-02-15 01:57Echelon9OS Version => OS X
2009-06-04 10:11Echelon9Statusassigned => confirmed
2010-01-26 23:59Echelon9Note Added: 0011591
2010-01-26 23:59Echelon9Statusconfirmed => resolved
2010-01-26 23:59Echelon9Fixed in Version => 3.6.11
2010-01-26 23:59Echelon9Resolutionopen => fixed