Archived

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

TheRealMAN11

Low framerate

Recommended Posts

TheRealMAN11    142
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
TheRealMAN11    142
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
Strife    374
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
a person    118
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
Biased turkey    122
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
Biased turkey    122
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
Biased turkey    122
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
Guest Anonymous Poster   
Guest Anonymous Poster
i had the same ATI some time ago. it must be the slowest video card on the planet!

Share this post


Link to post
Share on other sites
Shelrem    134
Sorry, i don''t buy it.

That ATI card might be painfully slow, but 7 fps for a 640x480 blit and a little overdraw for a sprite? If i were you, i''d crack out gperf and see where the bottle-neck is. If it''s in SDL_Blit() or one of the associated functions, then either something''s misconfigured (check the flags you create the screen with), or the card really is that slow. If you''ve built up some infrastructure around the SDL functions, then it might be something there.

ben.c

Share this post


Link to post
Share on other sites
Biased turkey    122
You''d better buy it

just 800x600x32 gives 1.920 MB almost the amount of the videoram of his videoboard. That''s just for the primary surface, the seconary buffer looks like it will always be in the system ram and the blitting hardware capability of that ATI board ( if they exist ) will never be used.
Now, I agree with you on the point that 7fps is really slow and that his hardware problem is added to an eventual misconfiguration.
It looks like the only real tewst would be to try swapping the ATI videoboard with a more performant one.

Share this post


Link to post
Share on other sites
TheRealMAN11    142
I think it was something running in the background. Because when I just updated the changed area of the screen I ran in about 40 to 50 fps, but now it is running around 90. But thanks for your help.


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.
All your GameDev.net base are belong to Myopic Rhino

Share this post


Link to post
Share on other sites