I think I remember hearing something about a string of if statements are actually faster than a switch statement. Do I remember correctly? ... or is this false?
With your permission, GameDev.net uses analytics cookies to understand how people use the platform.
You can accept analytics or continue with necessary cookies only.
Learn more