Hi, maybe you can give me some clues about my performance issues.
After some random time (~1 minute) my app starts to slow down on my android device (samsung galaxy S7), the framerate goes from 60 fps to 40 fps. I’ve triple checked memory leaks, I even display garbage collector size for debug purpose and it constantly oscillates between 2Mo and 3Mo from the start of the app, so I guess there is no memory leak.
Another thing I’ve noted, when I go out of the app for some seconds and I came back, the fps is back at 60 fps for 3-4 seconds and then goes back to 40 fps again. I even tried to “alt tab” the app for several minutes and when I come back, the fps is back to 60 fps durably until it goes back to 40 after some random time again.
What could be the cause of this behaviour?
Why would the fps slows down when there is nothing new in the game (it’s an infinite runner game) and when the garbage size does not increase?
(I’m using corona build 2017.3135)