Java libgdx: FPS low on Android devices

In my game, I created many loops and methods in render. The FPS range of my laptop is 56 to 60, which is OK. However, when I run it in the Android operating system of Galaxy note 4, the FPS range is 24 to 45, which is not OK

Now I need a new rendering thread to synchronize rendering with the following objects:

Gdx.app.getApplicationListener().render();

Who can help me solve this problem?

resolvent:

Even low-end laptops usually have more processing power than high-end smartphones. Therefore, laptops running smoothly on laptops may lag far behind Galaxy note

You hardly provided any information in the question, so what I can suggest is the general method;

>Analyze games on your phone and identify possible bottlenecks so you can deal with them http://developer.android.com/tools/debugging/debugging-tracing.html >OpenGL analysis will also be very helpful. You can monitor context switches and so on https://github.com/libgdx/libgdx/wiki/Profiling >Also, as a general rule of thumb, do not cycle through rendering, Or minimize rendering if absolutely necessary. Initializing the reusable object pool at startup will help you a lot https://github.com/libgdx/libgdx/wiki/Memory-management

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>