carn1x
06-18-2009, 08:12 AM
Hi,
I've been developing a game, for learning purposes as well as fun. The entire game is drawn with line, circle and rectangle sprites, with various transparency effects. Things can get pretty hectic at times with a lot of objects on screen in late game, and the frame rate really takes a hit. So I am trying to create a level of detail setting, for use both dynamically and user set.
To alter the level of detail, I am skipping frames, or removing effects that are only for visual purposes earlier than the max detail equivalent. Another technique, is when for instance a rocketlauncher fires a large spread of missiles, some of the missiles will be hidden along with the rocket trail effect, as rendering more than so many rockets when they are all grouped together with near parallel vectors ends up being fairly wasteful. This is helping somewhat, however I am wondering if there are some global flash settings that I can also exploit? Such as turning off AntiAliasing, how would I do this?
Does anybody have any other ideas or techniques for how to increase frame rate?
I am virtually certain the frame rate hit is to do with object display rather than inefficient coding of the game math behind the scenes, as part of the games control allows the player to hide certain effects by holding the CTRL button. When the game hits a slowdown, I can hit CTRL, remove the expensive layers and the game instantly speeds up. However the purpose of this function is actually to allow the player access to objects on the screen that are underneath the various effects, and I would like to provide the player the opportunity to play the more visually expensive scenarios with reduced graphics, rather than resort to hiding all effects.
Thanks for any help or comments :)
I've been developing a game, for learning purposes as well as fun. The entire game is drawn with line, circle and rectangle sprites, with various transparency effects. Things can get pretty hectic at times with a lot of objects on screen in late game, and the frame rate really takes a hit. So I am trying to create a level of detail setting, for use both dynamically and user set.
To alter the level of detail, I am skipping frames, or removing effects that are only for visual purposes earlier than the max detail equivalent. Another technique, is when for instance a rocketlauncher fires a large spread of missiles, some of the missiles will be hidden along with the rocket trail effect, as rendering more than so many rockets when they are all grouped together with near parallel vectors ends up being fairly wasteful. This is helping somewhat, however I am wondering if there are some global flash settings that I can also exploit? Such as turning off AntiAliasing, how would I do this?
Does anybody have any other ideas or techniques for how to increase frame rate?
I am virtually certain the frame rate hit is to do with object display rather than inefficient coding of the game math behind the scenes, as part of the games control allows the player to hide certain effects by holding the CTRL button. When the game hits a slowdown, I can hit CTRL, remove the expensive layers and the game instantly speeds up. However the purpose of this function is actually to allow the player access to objects on the screen that are underneath the various effects, and I would like to provide the player the opportunity to play the more visually expensive scenarios with reduced graphics, rather than resort to hiding all effects.
Thanks for any help or comments :)