• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by DenisIsDenis · May 19, 2021 at 11:34 AM · androidfpsperformancelaglow fps

Low FPS in very simple Android game

I made a simple fps counter. On a computer, a value of about 1000 is displayed. On a mobile phone: 20 fps …


Working on the old version of Unity 5.6, Android games worked with high fps, but when switching to the new version (2020.3 and higher), all Android games began to work very slowly.


Computer operating system version: Windows 10, version 20H2.


Phone operating system version: Android 10 QP1A on Redmi 9.


I am attaching a link to download the original project with the apk file in a 7zip archive: https://www.dropbox.com/s/58wqawcmeoguh3i/Low%20FPS%20example.7z?raw=1

Comment
Add comment · Show 22
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image DenisIsDenis · May 27, 2021 at 06:37 AM 0
Share

Any ideas?

avatar image andrew-lukasik DenisIsDenis · May 27, 2021 at 07:32 AM 0
Share

And what does the Profiler say to that?

avatar image DenisIsDenis andrew-lukasik · May 27, 2021 at 07:42 AM 0
Share

On my computer: profiler

profileroncomputer.png (151.4 kB)
avatar image andrew-lukasik DenisIsDenis · May 27, 2021 at 08:04 AM 0
Share

Profile the target device where the issue is

avatar image andrew-lukasik DenisIsDenis · May 27, 2021 at 08:21 AM 0
Share

Btw. your build target may have vsync or some kind of fps targeting enabled. So this very well may turn out not to be a performance issue at all.

avatar image DenisIsDenis · May 27, 2021 at 10:37 AM 0
Share

Disabling vsink did not help. FPS targeting is not set.


Here is the profile from the smartphone: alt text

profileronsmartphone.png (168.9 kB)
avatar image andrew-lukasik DenisIsDenis · May 27, 2021 at 12:58 PM 0
Share

I am seeing few very bad things here:

  • abnormal GPU usage.

  • Mono.JIT takes 150 ms (look into profilers'`Hierarchy` view to investigate it's origin)

  • SerializeJSON that takes 400 ms. Get a stack trace for this process

avatar image DenisIsDenis andrew-lukasik · May 27, 2021 at 01:48 PM 0
Share

Here are some screenshots of the profiler hierarchy:

https://www.dropbox.com/s/ei55ekkv5bnhv72/profilerHierarchypart1.png?dl=0 https://www.dropbox.com/s/1hrrglo4uqv1es8/profilerHierarchypart2.png?dl=0 https://www.dropbox.com/s/n0v9ye6dqum2m02/profilerHierarchypart3.png?dl=0

But I could not understand the reason for such long processes.

avatar image andrew-lukasik DenisIsDenis · May 27, 2021 at 02:48 PM 0
Share

VariablesSaver, visible in the 3rd image, is part of visual scripting package. Remove this package from your project and test again.

Show more comments
avatar image andrew-lukasik DenisIsDenis · May 27, 2021 at 09:59 PM 0
Share

Disabling vsink did not help

VSync cannot be disabled on android & ios
Show more comments

1 Reply

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by DenisIsDenis · Jul 07, 2021 at 07:28 AM

Yeah… After a lot of experiments, during which I tried a lot of solutions to the problem (which could not increase the number of frames per second to 60), I still achieved 60 fps in mobile games.


What I've done? I have installed Unity 5.6.7f1. In order to compile games on Android devices, I needed JDK 8, because Unity 5.6.7 did not want to work with newer ones. After that, I compiled an empty game for a smartphone and the FPS increased to 60! (in new versions of Unity 2017 - 2021, such scenes gave a maximum of 30 fps (I checked)).


Conclusion: I decided for myself to use Unity 5.6.7f1 to create mobile games.


Note: I have verified that the JDK version does not matter - I tried using JDK 8 in the new version of Unity, but the fps remained low.


Link to Unity 5.6.7f1 download page (just in case anyone needs it):

https://unity3d.com/get-unity/download/archive



EDITED on November 27, 2021:

My Redmi 9 was upgraded from Android 10 to Android 11. Changes:


Firstly, I was able to profile the GPU (there was an error earlier that the device does not support GPU profiling).

Secondly, applications that previously showed a maximum of 30 FPS now display 60 FPS.


Together with Android, the MIUI firmware was updated to 12.5.1 and it was reported that the rendering was optimized.


In a word, now games from any version of Unity work like clockwork!

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

309 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Unity to android (game very laggy) 1 Answer

Animation are not fluid in android 1 Answer

Android 30 FPS cap on minimal/empty scene 0 Answers

Unity UI Slowing Down Android Phone 0 Answers

Android Low FPS 2 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges