[SDL] changing gl state is not a good thing
vitto.giova at yahoo.it
Thu Jul 15 01:07:57 PDT 2010
i was reading SDL_renderer_gles and i noticed that every time we there
is some gl call the gl state is modified with a couple of
While this is completely fine for desktops systems, this is a major
performace kill on mobile devices, right where opengles is
Normal practice in this case is to update the glstate once, keep it
always the same and disable/enable other states only in very special
On the web there's plenty of documentation (on the top of my head
) and i personally tried to modify SDL_render_gles...
as result i personally moved from 40 fps to 50 fps alone, without any
code change to my code.
Is there any strong opposition to this practice? If not, i'm ready to
file a bug and submit a patch.
More information about the SDL