DST wrote:Any fullscreen transparency will kill your fps, for the most part. It does slightly depend on how much of a hue/brightness change occurs, (white wispy clouds aren't too bad) but black...that's a 100% shift from the current values. The best way is to dim the rgb of some components, and have a different animation for background.
Taking the background out of the transparency equation will help a LOT.
I'd down the red and green by maybe 50 or 80 pts, and the blue by only half that, since moonlight often appears blue (even though its not). Your main character and powerups don't really need dimmed.
Sometimes you can get away with transparency, i dunno....what res are you using? In my 640x480 game, a red overlay flashes when you get hit, then fades out in about 1/3 of a second. When this happens, my cpu goes from its idle or active speeds of 12-50% up to 94%. This isn't optimal, but it didn't max the cpu, so i can handle it. Run your task manager in the background, with the game in a window so you can see the cpu. If your game idles at more than 20%, and is active at more than 60%, then transparency isn't your biggest issue.....
Users browsing this forum: No registered users and 1 guest