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 /
avatar image
3
Question by Myrddraal · Sep 24, 2013 at 10:30 PM · fpsprofilerperformance optimizationmain thread

Why does running the Profiler increase framerate?

Hello all,

I have a strange scenario in which running the unity profiler increases the fps of the game considerably.

When I'm not running the profiler, the stats panel shows: 25fps Main Thread ~40ms Renderer: ~20ms

All I do is open the profiler window, and suddenly this changes to: 60fps (VSync) Main thread ~9ms Renderer ~10ms

The game is also much more responsive.

Has anyone seen this sort of behaviour before, or have any idea why the profiler might have this effect? Obviously the profiler isn't much use in these circumstances...

Comment
Add comment · Show 5
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 holdingjason · May 13, 2014 at 05:18 PM 0
Share

I am curious if you ever found out anything on this issue.

I am seeing something similar on my Android device. With the same exact build running WITHOUT profiler hooked up through my device I am seeing CPU of around 60% and some slight stuttering at times (using targetframerate = 30). Now turn on profiling and the CPU drops to 30% and game plays smooth as glass, basically the game runs like it would without targetframerate at all but the CPU in that case jumps to 70-80% without profiling.

Very, very strange and so far no luck at figuring out what could be the cause. I am now attempting to check the FPS rate through the game so I can see what it hits in both scenarios (profiling and non profiling) to see if somehow maybe running the game in profiler is slowing the FPS but smoothing it out or something. However it sure does not appear to be the case, I would swear that running it via the profiler is increasing the FPS.

avatar image Jeff-Kesselman · May 13, 2014 at 05:48 PM 1
Share

Does it maybe have to do with DEBUG prints and where they get sent in the two cases?

DEBUGs can be a surprising drain on the system...

avatar image holdingjason · May 13, 2014 at 06:07 PM 0
Share

Nope. $$anonymous$$ade sure to yank any of the debug statements out. Plus it would be weird that the debug statements would be more efficient with profiling then not.

avatar image ThePunisher · May 13, 2014 at 06:55 PM 0
Share

Are you attaching the profiler to a standalone build or are you running the game in the editor?

I have seen performance hits on standalone builds if you make it a development build and you select "Auto-connect profiler". $$anonymous$$ake sure you don't select that.

Edit: I forgot to mention that the performance hit occurs with that option selected EVEN if the profiler is not connected.

avatar image mgill4 · Jul 08, 2018 at 05:14 PM 0
Share

Was this ever figured out? I seem to be having the same problem with my gearvr app. It lags terribly with a standalone build or a dev build without the profiler on and when its on and connected the app runs perfectly smooth.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by YBtheS · Jul 09, 2018 at 02:11 AM

According to this user, he just had to turn off G-SYNC.

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.

Follow this Question

Answers Answers and Comments

20 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

Related Questions

Unity 2019.3 LWRP strange Performance Issue on android 0 Answers

Performance load of OnGUI 0 Answers

Low FPS with no shown reason 2 Answers

I dont know what EditorLoop is in my profiler?,I don't know what EditorLoop is in my profiler? 3 Answers

BehaviourUpdate taking unreasonable amounts of resources in the profiler 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