• 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
2
Question by dl_studios · May 03, 2017 at 09:02 PM · macosxgraphics cardmacbook

Editor Way Laggy When in Play Mode on New MacBook Pro

Unity Editor works fine until I enter play mode. Then it becomes incredibly laggy regardless of what is in the scene. In a new scene with no geometry or logic running it is still laggy.

Why would t$$anonymous$$s be the case? My thoughts are that it's either Unity is having issues with an Intel Iris Grap$$anonymous$$cs card or that the card is the issue.

Unity works fine outside of play mode. Not sure what to make of it. How does Unity use the card different when in play mode? What could be the issue?

I've searched and only been able to find an answer for pc, where they say to force unity to use open gl. My understanding is that Mac only uses open gl. so doesn't seem to fit. Am I wrong there?

I'm running:

macOS Sierra 3.3 GHz Intel Core i7 Intel Iris Grap$$anonymous$$cs 550 1536 MB.

I have build settings on on Mac OS X _x86_64

Any help would be appreciated. Thanks!

Comment
Add comment · Show 3
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 Bodrp · May 03, 2017 at 09:19 PM 0
Share

Do you display both scene view and game view at the same time in play mode? If so, have you tried showing only one at once?

avatar image dl_studios Bodrp · May 03, 2017 at 10:47 PM 0
Share

I'm only showing one at a time. And the game is laggy in both scene and game views once I press the play button.

avatar image Bodrp · May 04, 2017 at 01:31 AM 0
Share

The artist on our team once had this problem during a gamejam. It turned out there was a GameController on a prefab which was numerous times in the scene and throwing hundreds of null reference exception. Maybe the issue was code related. Logging in the console multiple times per frame can cause considerable lag, but maybe it could have been another performance issue.

If it happens again, maybe you could try deactivating gameobjects in the scene until it stops lagging to pinpoint the culprit.

[edit] I just saw your answer. That's weird.

4 Replies

· Add your reply
  • Sort: 
avatar image
3

Answer by dl_studios · May 03, 2017 at 10:57 PM

Weird. I went to Quality Settings, toggled off Anti Aliasing and it suddenly worked with no lag. I toggled Anti Aliasing back on and lag did not return. Very weird. I've dealt with the lag for two days and now it is gone suddenly. W$$anonymous$$le the issue is resolved for me for now it still begs the question what is going on?

Comment
Add comment · Show 1 · 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 akduy · Jun 12, 2020 at 01:46 AM 0
Share

I faced the same problems and your solution has worked for me! Thanks

avatar image
1

Answer by nickcernis · Oct 06, 2021 at 06:35 PM

Old thread, but I was having the same issue with Unity 2020.3.19f1 on a 16-inch 2019 MacBook Pro with an AMD Radeon Pro 5300M. Sharing the fix that worked for me in case anyone discovers t$$anonymous$$s thread via search:


  • Exit play mode.

  • Visit Unity → Preferences. Change Interaction Mode from Default to Custom, but note the value next to Monitor Refresh Rate in the drop-down (in my case 16 ms).

  • Set the Frame Throttling (milliseconds) to a number lower than your monitor refresh rate. 12 worked well for me. If you go too low or too $$anonymous$$gh you may see stuttering again.


I wrote it up in more detail here with before/after video if anyone needs more info or screenshots of the general settings.

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
avatar image
-1

Answer by Brian-Santos · Mar 19, 2018 at 04:46 PM

Unity seems to in fact be on drugs. I randomly started having a huge 1-2 seconds lag in the editor, could barely even click the buttons. Restarted my computer and all, lag was still there. I disabled all components in my Hierarchy, reenabled them, and now the lag is gone. ???

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
avatar image
0

Answer by amamaenko · Oct 20, 2021 at 04:58 PM

It got broken again in Unity 2020.3.20f1

With t$$anonymous$$s configuration: 16-inch 2019 MacBook Pro with an AMD Radeon Pro 5300M, I am getting jittering with default Interaction Mode, but also with anyt$$anonymous$$ng that comes near my Monitor Refresh Rate (16 ms). Trying various Frame Throttling values, I feel to have found the sweet spot at 23 ms. No idea why t$$anonymous$$s particular number, since my display works at 60Hz - apparently, some sort of a bug in Unity.

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

69 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

Related Questions

mac platform 1 Answer

function on collision enter not working. 1 Answer

Unity3d project failed to build for iOS macos Catalina (cocoapods problem) 4 Answers

Touching the touchpad disables mouse movement in Mac 0 Answers

Upgrade C# language version to 7.0 Mac in Unity?,Upgrade project to C# language version '7.0' on a Mac? 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