22.11.2009, 19:32
Quote:
Originally Posted by Don Correlli
Use switch, it's faster than else/if.
|
Try to do a switch with a float value and cases such as 'case 0.0 .. 10.0', and then compare the speed with a similar if structure, you will see that the if structure is much faster.