If you have to use a stack of if statements, the only real optimization you can use is what I proposed : put the most common situations near the top so you don't have to evaluate a stack of rarely seen conditions every function call.
uuh algorithm - how to make a fast code
Blitz3D Forums/Blitz3D Beginners Area/uuh algorithm - how to make a fast codeThe 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.