Optimizing

BlitzPlus Forums/BlitzPlus Programming/Optimizing

Drackbolt(Posted 2005) [#1]
I've got a large game brewing that's approaching 10000 lines of code. My question is, does parsing out more code into individual functions, or separating functions into other "include" files, actually save any cycles versus having all the code in one place? Does using functions in general save any processing time, or is it mainly for convenience? Thanks everybody.


QuickSilva(Posted 2005) [#2]
It`s mainly a convenience thing. Splitting up your code into seperate files can help keep a project far more organised. Infact having to call functions actually slows things down but its not noticable in most cases and is a good habit to get into early on.

Jason.