Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Spencer

how to get hardware suport under X

This topic is 5522 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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..."

Share this post


Link to post
Share on other sites
Advertisement
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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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..."

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!