开发者

Android game performance viewer

开发者 https://www.devze.com 2023-02-15 11:58 出处:网络
How I can scan the performance of my game? I use OpenGL ES in my game, but sometim开发者_开发问答es, when many enemies on the screen, it will lagg a little. (15-20 enemy + 7-8 rockets, etc)

How I can scan the performance of my game?

I use OpenGL ES in my game, but sometim开发者_开发问答es, when many enemies on the screen, it will lagg a little. (15-20 enemy + 7-8 rockets, etc)

what is the best way to see what is the "non best" algorithm on my code? (performance viewer, etc)


You can use traceview to profile your application, which will show you the amount of tile and number of calls to methods in your program.


For the CPU, Traceview is awesome. For the GPU, you're screwed (see my question about that). There are some GPU-specific packages, like for the Adreno GPU, but generally, OpenGL ES seems devoid of any general-purpose GPU profiling options.

0

精彩评论

暂无评论...
验证码 换一张
取 消