Jump to content
  • Advertisement
Sign in to follow this  
Munchkin9

General Graphics Help

This topic is 2601 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

I really need someone to explain graphics programming to me... I know that's vague but I really don't even know where to begin.

My problem is that I can create a perfectly working game with minimal graphics (no background, and circles representing characters) but as soon as I add real graphics especially the background picture, the games start lagging immensely. I am using Python and Pygame, and I am trying to work with a screen that is 1440x900.

Any help is appreciated.
-Munchkin9

Share this post


Link to post
Share on other sites
Advertisement
You're right, that is vague.

What did you try, how did you draw things? Are your drivers up to date? Are you sure something isn't falling back to software rendering?

Share this post


Link to post
Share on other sites

You're right, that is vague.

What did you try, how did you draw things? Are your drivers up to date? Are you sure something isn't falling back to software rendering?


Do be honest I have no idea what I did. Since I'm using python I just drew a 'background image' a pre-made what not in Pygame. And I can run very high graphics AAA games with no problem so this is solely a problem with my programming. What would be convenient is if someone could direct me to resources such as documentation or examples of graphics programming I might be able to figure it out

EDIT: Okay I actually think I figured it out. For anyone who runs into the same problem as me (and that happens to check this thread) look at this A Newbie Guide to pygame.
apparently the .convert() function has to be called so as to stop a process that has to be run on images that have not been converted. Also has a few other tips for optimization that might in fact apply outside of pygame or even python.

Any way good luck and happy programming.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!