Jump to content
  • Advertisement

Archived

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

TheRealMAN11

Low framerate

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

My game (its more like a test demo now). Only runs at 7 fps using sdl. I am only blitting a background and a sprite. When I just blit the sprit and what was changed behind the sprite it runs at a respectable frame rate (like 40 fps or something) so should it run that slow when I blit the whole background? Or is there something I am doing wrong.
It is foolish for a wise man to be silent, but wise for a fool. Matthew WebMaster www.Matt-Land.com All your Xbox base are belong to Nintendo.

Share this post


Link to post
Share on other sites
Advertisement
i686, Debain, kernel 2.4.17-686

If I just update the area that changed (where the sprite was) it works, but before I made a class for the player it ran fast enough blitting the entire background at once.


It is foolish for a wise man to be silent, but wise for a fool.

Matthew
WebMaster
www.Matt-Land.com

All your Xbox base are belong to Nintendo.

Share this post


Link to post
Share on other sites
Do you have the latest drivers for your video card? Even if you don''t, that framerate seems excessively low... You''re positive there''s no renegade processes hogging CPU time or something?

rm -rf /bin/laden

Share this post


Link to post
Share on other sites
are all your tiles in VRAM?
what resolution? if you are running at anything above 800x600x32 you wont get higher then 11 or so frames per second blitting an entire screen over the bus. the cpu is just too slow and the bus too narrow,
the last question, you are only drawing what is on the screen right?

Share this post


Link to post
Share on other sites
What kind of videoboard dou you have?
You specified the SDL_HWSURFACE flag when you created the SDL surface did you?

A 640x480x16 give me a smooth animation on a Celeron550 and a Voodoo3 so something is definitely wrong in your case.

Share this post


Link to post
Share on other sites
I think I found the prolem: Your ATI 2mb videoboard.
My first computer was a PII 233mhz and an ATI rage 2MBram and the first game I bought for it was a Formula1 simulation and it was sloooooooooow and was suspended every 10 secs or so.
Things improved drasticly when I just replaced the ATI with a Voodoo Banshee that has at least 8MB ram ( could even be 16 mb but I''m not sure ).
So it looks like your problem is a lack of RAM on your vide board.
I highly suggest to try it with a "decent" videoboard.Of course it wouldn''t hurt if you could upgrade the processor too.
Now to make it clear, I have nothing against ATI and at that time I was a newbie in the conputer field and of course didn''t know about Arstechnica and was not making any difference between a retail 8MB videoboard and the same cheap 2MB OEM version. They were both ATI rage.
Good luck

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!