Performance Impact Of Scaling Graphs


snurty

Still Fresh
Joined
Aug 24, 2008
Messages
60
I have almost finished an asteroid type game using fenix but the frame rate is starting to drop.

I am scaling quite a few graphs using the size = command e.g. large rock is size = 100, medium rock size=50 and small rock size = 25 all based on the same graphs.

Does anyone know what kind of performance impact using the size command to scale graphs has?

I could create new graphs for the medium and small rocks but wouldn't want to go to the effort if it doesn't help much. There are quite a few animation frames and therefore quite a task.

Thanks
 
Try scaling every frame once when the game starts and save them as separate graphs. Then you could use those instead of scaling each rock every frame, and avoid any manual rescaling work. Hopefully Fenix allows you to do this.
 
Well if it is the same graphic you use for all the asteroids and there is only three different types of sizes, why don't you make three different sprites out of it. I wouldn't even bother to scale and save the graphics on runtime.
 
Alex. said:
Try scaling every frame once when the game starts and save them as separate graphs. Then you could use those instead of scaling each rock every frame, and avoid any manual rescaling work. Hopefully Fenix allows you to do this.
IIRC boomshine2x does this several thousand times at the GBAX splashscreen :p
 
Last edited by a moderator:
Thanks for the info. I didn't really want to create new sprites in the fpg as there are about 14 frames of animation and therefore an additional 28 sprites. Not massive but not worth it if the rescaling on the fly didn't hit performance much. I hadn't thought of doing it on loading and will have a look to see if this is possible in Fenix.
 
Back
Top