[SDL] Optimal mode from SDL_GetVideoMode

Stephane Marchesin stephane.marchesin at wanadoo.fr
Wed Oct 11 13:01:32 PDT 2006


benang at cs.its.ac.id wrote:
>> benang at cs.its.ac.id wrote:
>>     
>>> Thanks for the feedback. It's very enlightening. Just as I thought,
>>> using
>>> X will make the game runs slower.
>>>       
>> This may or may not be the case. If X is the only way for you to get
>> your card to do DMA, then it might very well be faster, even if it eats
>> up a little more memory.
>>
>>     
>>>  The truth is, I'm just getting to know
>>> Linux only recently. Well, I've used Linux before in practicums in my
>>> college days few years ago (although only the basics). So I'm pretty
>>> much
>>> a not-so-newbie-but-not-so-seasoned Linux user. I've tried running my
>>> application in pure console (without using Win Manager at all) and it
>>> returned some error. So at that time I assumed SDL can't be used in
>>> console. Can you point me to some resources to make SDL in fbcon?
>>>
>>>
>>>       
>> What's your target graphics hardware ? This matters a lot in your case.
>> SDL will only accelerate blits on fbcon with some video cards.
>>
>> Stephane
>>
>>
>>     
>
> Well, my machine's graphics is an "Integrated VIA UniChrome AGP Graphics
> with MPEG-2 Accelerator". I guess it's not a familiar one because it comes
> with the embedded system.
>
>   
Well, the X driver for the unichrome chips will accelerate DMA. On the 
other hand, I don't think there is even a frame buffer driver for that 
chip.
So in my view, if you have enough RAM, X is pretty much the way to go. 
Hey, you might even want to use opengl on that chip.

Stephane





More information about the SDL mailing list