[SDL] Optimal mode from SDL_GetVideoMode

Simon Roby simon.roby at gmail.com
Thu Oct 5 19:48:44 PDT 2006


On 10/5/06, benang at cs.its.ac.id <benang at cs.its.ac.id> wrote:
> Thanks. Maybe that's why my app runs slowly (I used hardware surface all
> along).

Actually SDL fallbacks to a software surface if you request an
hardware surface and the current backend does not support it, so in
your case it shouldn't make any difference performance-wise.

Keep in mind that plain X11 is always software rendered, and therefore
not terribly fast (but fast enough for most uses). To remedy this, you
must either 1) use OpenGL instead of the 2D API, or 2) wait for SDL
1.3, which will provide an OpenGL backend for the 2D API.
-- 
- SR




More information about the SDL mailing list