What is more expensive, 500 nested if statements being constantly check in the game loop, or pi being constantly calculated in the game loop?
At least the JVM will only check the first condition of the if-statement and ignore the rest if it is false.
So what’s more expensive?