Local vs Global
Blitz3D Forums/Blitz3D Programming/Local vs Global
| ||
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? |
| ||
Readability is more important than any other concern during development IMO. So, use locals. |
| ||
And the speed difference is probably laughable too :) |
| ||
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 |