Added SDL_GL_RETAINED_BACKING to SDL_GLattr enum. Retained backing means the memory for color buffers, depth buffers, etc cannot be overwritten by other applications between frames. The default for this setting is 'on'. I wanted to add this because turning retained backing off on iPhone dramatically increases performance. gsoc2008_iphone
authorHolmes Futrell <hfutrell@umail.ucsb.edu>
Fri, 18 Jul 2008 18:05:54 +0000
branchgsoc2008_iphone
changeset 2365478fa831910f
parent 2364 e321b52dee8f
child 2366 4a6d5bff9521
Added SDL_GL_RETAINED_BACKING to SDL_GLattr enum. Retained backing means the memory for color buffers, depth buffers, etc cannot be overwritten by other applications between frames. The default for this setting is 'on'. I wanted to add this because turning retained backing off on iPhone dramatically increases performance.
include/SDL_video.h
     1.1 --- a/include/SDL_video.h	Fri Jul 18 17:53:54 2008 +0000
     1.2 +++ b/include/SDL_video.h	Fri Jul 18 18:05:54 2008 +0000
     1.3 @@ -268,7 +268,8 @@
     1.4      SDL_GL_STEREO,
     1.5      SDL_GL_MULTISAMPLEBUFFERS,
     1.6      SDL_GL_MULTISAMPLESAMPLES,
     1.7 -    SDL_GL_ACCELERATED_VISUAL
     1.8 +    SDL_GL_ACCELERATED_VISUAL,
     1.9 +	SDL_GL_RETAINED_BACKING
    1.10  } SDL_GLattr;
    1.11  
    1.12