Android game performance

I encoded a game for Android. For each frame, I use the same procedure.

So, my game runs smoothly, but at some points the game gets stuck. I searched for deltaTimes methods in methods, but finding the problem is not easy.

In the image for deltaTime between frames: frame timeyou can see peaks. Between the peaks, the game runs smoothly.

So, my question is for you: did you know that the profiler or some similar eclipse to find the cause of the peaks? Or do you know a website with performance tips for developing games in android?
The garbage collector is wrong because the message does not arrive in the debug console.

// EDIT 1: After searching for additional performance hints, I added my own theme class:

<resources>
    <style name="Theme.NoBackground" parent="android:Theme">
        <item name="android:windowBackground">@null</item>
    </style>
</resources>

, . second performance test

+4
3

, . , , , , , , .

, , .

, .

for-loop ArrayLists Android

Android

+1

traceview, , .


, Android, .

0

. , logcat, "GC_" .

, : , new(), , . , .

0

Source: https://habr.com/ru/post/1532293/


All Articles