Advertisement

how to get hardware suport under X

Started by May 04, 2003 03:20 PM
3 comments, last by Spencer 21 years, 8 months ago
Hi! I am currently developing some (small) games using SDL. I have a very simple 2d game which is based on surface blitting basically. The problem is that i get an fps of about 16 in 800 by 600 resolution, and i dont get harware surfaces or hardware blitting (which i assume would help me speed things up). I am using redhat 7 with an intel740 graphics card which is supposed to have hardware blitting support and stuff. what can i do to get hw-support?? thanks --Spencer "Relax, this dragon is sleeping..."
--Spencer"All in accordance with the prophecy..."
Its been explained several times in the mailing list.

--FAQ
Q:
How do I tell SDL to use the DGA 2.0 video driver?


A:
Make sure that you have XFree86 4.01 or newer, run the program as root, set the environment variable SDL_VIDEODRIVER to "dga", and use a video card like the Voodoo 3000, Matrox G400, or any other card with a decent DGA driver.
--

Or you can use OpenGL for video if it has support for your video hardware. You don''t need to be root then.

You can also use a software surface and blit only the changes between the frames.


kdIXfA.gamedev.10.coreyh@xoxy.net
www.ipeg.com/~rlfc
kdIXfA.gamedev.10.coreyh@xoxy.netwww.ipeg.com/~rlfc
Advertisement
I have the same problem and the above does little to improve the situtation. If I do all that it doubles my frame rate. However that still puts me about 1/10 the speed as the same program under windows and thats probably an extream under statement. I tried using SDL just so I could make linux stuff but have found it completely useless under it. Its great for windows. You can do all the Direct Draw stuff without all the clutterd code. I think I would need to learn OpenGL to get anything out of linux. unfortunatly that wont happen anytime soon.
------------------------------------------------------------- neglected projects Lore and The KeepersRandom artwork
actually i think switching to open gl does little as well unless you have special ogl drivers for your card but i can be wrong.



--Spencer

"Relax, this dragon is sleeping..."
--Spencer"All in accordance with the prophecy..."
DGA locks the frame rate to the refresh rate of your monitor. Thats why the frame rate is lower.

kdIXfA.gamedev.10.coreyh@xoxy.net
www.ipeg.com/~rlfc
kdIXfA.gamedev.10.coreyh@xoxy.netwww.ipeg.com/~rlfc

This topic is closed to new replies.

Advertisement