• 10 Posts
  • 935 Comments
Joined 3 years ago
cake
Cake day: June 17th, 2023

help-circle











  • unoptimized code that does complex stuff.

    You can still have complex code that is optimized for performance. You can spend more resources to do more complex computations and still be optimized so long as you’re not wasting processing power on pointless stuff.

    For example, in some of my code I have to get a physics model within 0.001°. I don’t use that step size every loop, because that’d be stupid and wasteful. I start iterating with 1° until it overshoots the target, back off, reduce the step to 1/10, and loop through that logic until I get my result with the desired accuracy.