JuanCarlosAragon / jmonkeyengine

Automatically exported from code.google.com/p/jmonkeyengine
0 stars 0 forks source link

Performance loss due to setRenderState(DEFAULT) #350

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Class: RenderManager
Line 429: renderer.applyRenderState(RenderState.DEFAULT);

This line applies the default render state after every mesh is rendered, this 
could results in calls like:

glEnable(GL_BLEND)
glDisable(GL_BLEND)

Which are a waste of performance. Depending on the graphics card or driver, 
doing these operations could cause low fps. This line should be removed ASAP.

Tasks:
1) Determine the "depth write" issue mentioned in the comment
2) Analyse OpenGL call traces
3) Find location of offending call
4) Eliminate

Original issue reported on code.google.com by ShadowIs...@gmail.com on 7 May 2011 at 4:10

GoogleCodeExporter commented 8 years ago
REMY IS THE MAN

Original comment by ShadowIs...@gmail.com on 1 Jul 2011 at 6:03