1

In my Android game I am looping through an enum like this multiple frames per frame:

for (IngameButton button : IngameButton.values()) {
    // some code
}

The memory allocation tracker shows that I am creating lots of Object Arrays (Object[])

Does looping through an enum like that instantiate each enum like a class?

Dominik Schmidt
  • 537
  • 1
  • 8
  • 22

0 Answers0