nicolasgramlich/AndEngine — pull request #182 by nazgee (2012-10-24 12:53:24+00:00)
Title: Reduce number of glEnable and glDisable calls

There is no need for postDraw to disable blending on every postDraw().
It is enough if Shape will make sure that it has the correct blending
setting in preDraw() method.

Since 99% of Shapes are drawn with blending enabled, this will
substantially reduce number of unnecessary JNI calls, and (hopefully)
improve overall performance.

I do not have a *reliable* way to test it, but I *think* I can noticed few FPS difference after applying this patch.