Local vs Global

Blitz3D Forums/Blitz3D Programming/Local vs Global

Neochrome(Posted 2004) [#1]
i use a function rapidly in a game and im thinking about turn some of the globals to Locals,

Will creating Locals take more CPU or should i create a global and just use that instead?


Beaker(Posted 2004) [#2]
Readability is more important than any other concern during development IMO. So, use locals.


Ross C(Posted 2004) [#3]
And the speed difference is probably laughable too :)


Neochrome(Posted 2004) [#4]
i can code well with out the readability, i need speed in this game, and i need all the help i can get

if Locals can speed things up, i'll use em.

cheers guys anyways