[SDL] Optimal mode from SDL_GetVideoMode

benang at cs.its.ac.id benang at cs.its.ac.id
Thu Oct 5 20:52:56 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
>

So it doesn't matter either way? Well, I'm currently developping in a
Pentium 4. But the intended machine for my game is an embedded system with
a clock of 400 MHz. And it's A LOT slower than in my PC. Maybe it's
because I used 1024X768 with 32 bpp mode. Is it possible for me to add the
performance while retaining my curent video mode?





More information about the SDL mailing list