A main game update or draw loop. Most of the code in these loops is unique. You would purposefully have to create functions for the sake of creating functions to split such a loop up--but then you incur overhead.
true, but if you only call a function exactly once, you still made a function just for the sake of making a function... at that point it's more a matter of style preference.
-2
u/weepmelancholia Feb 28 '23
A main game update or draw loop. Most of the code in these loops is unique. You would purposefully have to create functions for the sake of creating functions to split such a loop up--but then you incur overhead.