Jump to content
  • Advertisement

Archived

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

Tommy2k

Poor performance

This topic is 5775 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 seem to be doing something wrong.... I tried to make a very efficient tile system but when i check the framerate it''s like 33 FPS windowed 640x480 and 8(!!!) on fullscreen 1024x768. I also tried to make a little app that just blits 1 640x480 image on the screen each frame and i''ve been getting the same results from this. I''m not using any special flags with this result, but i tried settings/combining all of them. I''m using windows XP with a Gforce2 and the few high-end games i play all run smooth. The surface is 16 bit but setting it to 8 doesn''t really help me much. Please tell me what i''m forgetting.... thnx!

Share this post


Link to post
Share on other sites
Advertisement
You must make sure you convert any surfaces you want to blit to the screen to the screens format (does that make sense? )

SDL_Surface* my_surf = SDL_LoadBMP("blah");

my_surf = SDL_ConvertSurface(my_surf,screen->format);

Or something similar. There are also things you can do with the vid mode flags, like not having a HW surface necessarily etc.

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.

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!