Game Development Community

Large scrollers taking a slug at my FPS

by Phillip O'Shea · in Torque Game Builder · 01/16/2008 (1:17 pm) · 2 replies

I've got two scrollers in my game, both 600x128 units, containing an image repeated twice with size 2048x512px. Each cleanly removes 20fps from my game, despite them not scrolling or doing anything, just sitting there. Is there a way to have nice looking background images while not having such a dramatic impact on the game?

One more question, what is a good target fps to have at any given time in your game? If I keep them, 120 is what I get (my specs aren't great, terrible video card).

About the author

Head of Violent Tulip, a small independent software development company working in Wollongong, Australia. Go to http://www.violent-tulip.com/ to see our latest offerings.


#1
01/16/2008 (3:11 pm)
Hi there Phillip, I also noticed this using static scrollers to tile backgrounds. A quick fps test with / without scrollers is quite interesting. I used my round one behaviour contest entry to do this (the scroller I used repeats 8 times each way). The FPS in a window without the scroller averaged out around 270 and 150 with. When running full screen there is no difference, they both run at 60 FPS. This was tested on my old laptop so the specs are not that great either.
#2
01/16/2008 (7:16 pm)
You could maybe break it into tiles and use a tilemap, depending on your art. But it sounds to me like you don't need to look into that just yet.

For FPS, as long as you're above 60 I'd say you're good. Even 30ish might be ok for some games. Average humans can't see over 60 or 70 something FPS... I forget the exact number. 120 is not bad at all :)