Hi there,
I’m working on my first game and I’m wondering about best practice for targeting low end machines. I know from programming other languages that assigning a regularly accessed array value to a local variable gives you a slight performance boost. But I notice that the memory usage goes up when I do this.
So my question is: what is more valuable to the performance? Avoiding multiple array lookups by creating the local var? Or using up some of the memory by creating local variables? Unless I’ve misunderstood how this works. It would be great to get another opinion on this.
Many thanks,
Lance [import]uid: 31362 topic_id: 14882 reply_id: 314882[/import]