Originally Posted by Malsomnus
The only reason I was going on about it was because in my testing, merely defining a single variable in the local scope of an OnUpdate function slowed my game's performance to a crawl. Moving that variable outside that scope and reusing it immediately solved the problem.
|
Was that variable's value a table or function? If so, that is your problem, and it has nothing to do with where the variable is defined.
But, without seeing the actual code in question, it's really pointless to talk about it.