Wednesday, 14 August 2013

Variable Memory Method Scope within game loop

Variable Memory Method Scope within game loop

I have a game update loop that's executed about 30 times a second. I was
wondering what happens to variable memory once it leaves the method scope,
example.
void updateLoop(double delta)
{
double TestVar = 1; // << Does this variable get "deleted from memory"
// once it this method completes? What exactly
happens?
}

No comments:

Post a Comment