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 YaserDev · Sep 25, 2017 at 03:21 PM · unityeditorprofiler

Profiler causes lag with standalone build on unity 2017.1

Hello.
I have been facing a problem with the unity profiler since updating unity to 2017.1.0 version. When I create a standalone-windows development build and connect it to the profiler, then hit record on the profiler, and start to play the game in the build, I get occasional lag spikes in the game along with glitches and stuttering of the audio, those lag spikes are only present when the profiler is recording, which makes it hard to diagnose performance issues with the standalone-build because I can't pinpoint normal lag spikes and performance problems( those which are not caused by the profiler), from the spikes caused by the profiler. And when I check the lag spikes in the profiler, they are mostly in the form of GFX.WaitForPresent.
Also, I can't use the profiler with the play mode in the editor because, as you all probably know, it causes a lot of overhead in the editor. Has anyone faced a similar problem? maybe it's not really related to 2017.1 version but I haven't noticed it till now?
I have searched on the unity Q&A and forums but haven't found a similar problem yet.
Thanks

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
0

Answer by TheSOULDev · Sep 25, 2017 at 03:24 PM

Gfx.WaitForPresent is VSync. Ignore it. The profiler isn't lagging and debugging it in the Editor won't cause your game to lag, either (just the editor). The spikes from Gfx.WaitForPresent aren't something that are unnecessary overhead in the game, although you could've known that if you just searched it up on the answers here.

Cheers.

Comment
Add comment · Show 3 · 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 YaserDev · Sep 25, 2017 at 03:50 PM 0
Share

Hi, thanks for your answer. I know that Gfx.WaitForPresent isn't a problem, I always get it regardless of the lag in the game. But my problem here isn't the Gfx spikes, I only mentioned them for additional info, the game lags in the build when I run a development build and start recording in the profiler, and as I said, I can't profile my game because of those lag spikes in the build, nor the editor because the game is unplayable in the editor if the profiler is running.

avatar image TheSOULDev YaserDev · Sep 26, 2017 at 12:19 AM 0
Share

Then what are the spikes from? Gfx.WaitForPresent won't cause lag. It can just lower the FPS to 60, or maybe 30 (I am not sure). You should see any form of lag from the game in the profiler.

avatar image YaserDev TheSOULDev · Sep 26, 2017 at 11:17 AM 0
Share

That's the problem, I don't know what the source of the spikes is, In the profiler, it shows up as Gfx.WaitForPresent (When profiling using a development build) and those spikes aren't there when the profiler isn't recording(Doesn't matter if the build is a development build or normal)

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

70 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

Related Questions

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

Can't able to find Addressable Profiler 0 Answers

EditorLoop issue from Profiler. Help me please 0 Answers

Disable Warning message in Console Unity Editor . 1 Answer

Can I profile my app on iOS device with other Editor on Window? 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