To discuss this point further...

Does using Java primitive types still count in this scenario? Is it
fine to create, for example, a number of int or boolean variables,
within the game processing loop, or should these be created as static
variables upon the class creation?

To demonstrate, is:

static int myVal;
run(){
    myVal = x * y * z;
}

...better than:

run(){
    int myVal = x * y * z;
}


Thanks.

On Jun 18, 8:37 pm, Dan Sherman <[email protected]> wrote:
> Avoid allocations.
>
> Allocations = garbage collection.
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to