I am working on an application that requires a lot of navigation between screens
the problem is, when I navigate between the 2 screens that I have, the app slowly gets slow.
that slowness that the app has after opening and closing the screens, led me to investigate why that happens.
and I found that thunkable when navigating between screens does not close them, I did several tests and found that it does not close them, and that is the reason why the application becomes slow.
The first test I did was, navigate between 2 screens, after the 10th time the application starts running a little slow.
The second test was, opened in another screen with a game in web view, when returning to the main screen the music of the game continues to be heard. To solve that, what I did was press the back button that android has and there the screen closed perfectly.
and finally I emulated the app to see the FPS by doing that action of opening and closing the screens several times, and this is what happened
As you can see the fps are stable, but when I open and close the screens multiple times it passes this …
My application only has 4 screens and I only navigate between 2, I don’t have many blocks but I need to navigate many times between those 2 screens