Alpha not getting to 1

BlitzMax Forums/BlitzMax Beginners Area/Alpha not getting to 1

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.

As a wild guess, I bet it only reaches 1.0 on screen refreshes that divide into 5000 ;)

Its because somtimes the elapsed time is greater than the fade time
While ElapsedTime <= FadeTimer
It will happen whenever (Milliseconds Per Frame) isnt a denominator of fadetimer

EG 4980 + 60 Milli is grater then your 5000 Fadetimer, so it dosent run a cycle with it as one.

To fix it make FadeTimer a multiple of the refresh rate (ie 5040 for 60Hz)