Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • 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 /
  • Help Room /
avatar image
0
Question by Dans97 · Jun 22, 2021 at 06:12 PM · android buildperformance optimizationinputfield

[Android] Massive Performance Issues on Android with Input Field and Native Keyboard.

Hi! This is my first official question here in Unity Answers. I'll try to be as clear and as concise as possible with my issue. Thanks in advance to anyone who's willing to help!

I'm in charge of porting a PC game to a mobile game (Android and iOS) in Unity 2019.4.23f. I'm using an old and weak device to see how the game performs. Here are the details:

Multilaser M7S Plus
Model: ML-JI02-M7SQC_PLUS-KIDPAD
Processor: QuadCore-A64
Android Version: 7.1.1
RAM: 1GB

I'm currently stuck on an issue that I've never had before. The app runs with low FPS if I don't do anything (I'd say around 20FPS), but when I select an Input Field, the app basically freezes. Sometimes I can type, sometimes I have to force shutdown the device. This is what the profiler shows:

alt text


Since it's hard to see, I'll write the details here.

  1. First Frame: Input Process takes up 63.5% of CPU. 14.5% goes to PostLateUpdate.FinishFrameRendering (because of Render Camera);

  2. Second and Third Frames: roughly 83% of CPU goes to EventSystem.Update() (Self - 2 Calls);

Deep profilling was almost impossible to record due to the overhead. I'm not sure this frame was caused by the Input Field (as you can see, 50% of the time was due to Frame Rendering), but here's the info on the highest peak:

alt text


This is what I could find on the Internet about the issue that I've already tried:

  • Building the Android player using IL2CPP;

  • "Poking" the Event System before selecting Input Field;

  • Opening the device's native keyboard via script;

  • Using TMP.



Do you have any suggestions? Is this a limitation of the engine? Is there any workaround? Some way to not use an Input Field.

input-field-spike-multilaser.png (118.3 kB)
deep-profiling.png (73.9 kB)
Comment
Add comment
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

0 Replies

· Add your reply
  • Sort: 

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.

Follow this Question

Answers Answers and Comments

166 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

Related Questions

Input field keyboard not showing up after building it on android 0 Answers

Getting super slow framerate on android build(can't see the issue on profiling) 0 Answers

Project build lagging on android after unity update. 3 Answers

Virtual reality app perfromance in android mobile remains same even is showd a lot performance improvement in Editor play in unity3d 0 Answers

MoveTowards used on a path causes lag in build 0 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