Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 /
avatar image
0
Question by Databases · Sep 05, 2015 at 02:22 PM · androidlagprofilerunity 4.6overhead

Overhead spike of 46.2ms when profiling on Android!!!

Hi, everyone

I'm profiling my game using my Galaxy Note 3, it it is running perfectly at 60+ FPS but sometimes i get some serious random lag. While profiling, i have seen an overhead spike of 46.2ms starts to appear randomly while the player is moving and i guess it is the cause of the lag.

alt text

It is the first time i try to profile my game, so i came here to get your advice on what should i do in order to be able to find what is causing that overhead spike?

profiler.jpg (158.7 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

1 Reply

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

Answer by Databases · Sep 05, 2015 at 02:59 PM

I can't believe that i have found the source of the issue!

The source of the issue was Wifi...! Yes wifi, i have connected my device to my PC to profile my game but something weird happened which is that the profiler did start profiling via wifi but not USB!. I disabled wifi in my device and tried to profile again via USB and the magic did happen, i'm only getting an overhead of 7.04ms and lag disappeared!

Seems like profiling via wifi isn't efficient and will not make good results...

alt text


profiler2.jpg (117.3 kB)
Comment
Add comment · Show 4 · 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
avatar image Salazar · Jan 28, 2016 at 09:09 PM 0
Share

Thank you x 10

avatar image pako · Apr 17, 2016 at 09:31 AM 0
Share

Good catch @Database!!! I could have never thought of the WiFi as the culprit for the huge overhead! I was profiling on an Android phone and had about 70% of Overhead. After reading you answer, I switched back and forth between USB and WiFi active profiler, it became quite evident that the WiFi profiling caused this extreme amount of overhead. Once again, good catch! and thanks!!!

avatar image Databases · Apr 17, 2016 at 05:13 PM 0
Share

I am glad to see this is still helpful!

Regards.

avatar image taranasus · May 17, 2016 at 08:07 AM 0
Share

Hello! You fool! I love youuuuuu!

Seriously thank you so much it was driving me up the freking wall!

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

30 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

Related Questions

Scrollrect bad performance with Unity 4.6 on Android 2 Answers

Android lag on Nexus 7 (2012) 0 Answers

GPU (render time) increase if screen size increase 1 Answer

Very Bad Performance on Android 3 Answers

Optimizing script to improve lag 1 Answer


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