Fade Screen speed challenge!

BlitzPlus Forums/BlitzPlus Programming/Fade Screen speed challenge!

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I ran the ccFadeScreen routine on my machine and got about 10 fps. I rewrote the code to do the fade in C and now get about 100 fps. I only tested in in 32 bit graphics mode, but once I make sure that the routines can handle 15, 16 and 24 bits as well I will package it up and put it on my web site for everyone to use.

BTW, I modified the way it handles the time so that you can specify the amount of time you want it to fade. The routine calculates a multiplier based on the time for the first frame and the total time you want so that it can smoothly fade over that period of time.

I have two routines: fadeIn() and fadeOut().

Hopefully people can use the routines.