• 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
Question by joshlayton75 · May 04, 2020 at 06:29 PM · renderinggame developmentefficiencygameplayjitter

Simple game jittering horribly on MacBook Pro.

I am currently developing an RPG on unity on my 2018 Macbook Pro. Right now the scene is extremely simple and yet I am still getting jittering both in the editor and even worse on build. I have followed many tips on how to optimize the game(for instance setting objects to static), but I feel as though there is something big that I am missing. I have attached a video. I would really appreciate any help for I have been experiencing hours and hours of frustration. It is making it impossible to develop even slightly complex scenes.

https://youtu.be/NxI8jRBSkig

Comment

People who like this

0 Show 2
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 Eudaimonium · May 04, 2020 at 06:31 PM 0
Share

Are you possibly printing stuff with Debug.Log every frame? That's very costly. Also, have you setup your scene's lighting? Light probes, reflection probes, baked/indirect lighting? https://docs.unity3d.com/Manual/BestPracticeMakingBelievableVisuals6.html

Alternatively, DO NOT mark objects as static that are not, in fact, static. Trying to make characters or any moving objects static will incur a heavy performance cost if the object actually moves in the scene.

avatar image joshlayton75 Eudaimonium · May 04, 2020 at 07:01 PM 0
Share

Hi! Thanks for the reply. I will turn off all lighting just to see if that is my problem. I did not know the thing about static objects ! I will look into that. I don't think I am Console logging anything. Let me do some tests and report back.

1 Reply

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by Noblauch · May 04, 2020 at 07:04 PM

Hm, there is a lot that can slow a game down. I had once extreme problems with those sprite grass objects. Try to turn them off and see if it makes any difference. Otherwise the correct way to figure out whats wrong check out the Profiler and profile your game. See what may cause spikes in performance: https://docs.unity3d.com/Manual/Profiler.html

Comment
Eudaimonium

People who like this

1 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 Eudaimonium · May 04, 2020 at 07:47 PM 1
Share

Profiler is indeed a powerful tool but requires some familiarity with the engine before you can use it effectively. Going through often-overlooked stuff such as dynamic/static lighting setups and the like may help with the next question being "Why is GFX WaitForPresent taking so long?"

avatar image joshlayton75 · May 04, 2020 at 07:53 PM 0
Share

Both of your guys suggestions helped a lot! The marking moving objects as static seemed to be the big thing I was missing. Same with the grass. I really appreciate it! I would still love any more performance advice though. It definitely couldn't hurt! And ya I have tried to use the profiler but it was a bit much for me to understand at this point.

avatar image Eudaimonium joshlayton75 · May 04, 2020 at 08:02 PM 1
Share

One more idea - make sure not to use MSAA, it's very GPU intensive and Macs generally do not have top tier GPUs, but have incredible screen resolutions (Retina displays).

After that:

Make sure you understand the rendering pipeline you are using. If you are using Forward, Deferred, Universal or HDRP, read up on what makes it different from the others and what you should, and should not do in each of them.

Make sure you understand the lighting and shadowing and how it works in the game, what does it mean for a light to cast shadows, and how to control shadow and light quality in the project settings.

Be mindful of what kind of materials you are using, where and for what. Also, when you get to it, make sure you understand how different post processing options work (bloom, ambient occlusion, temporal antialiasing), and how expensive/desireable they are.

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

149 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

Related Questions

how to solve cannot save with playerPrefts in mycode?? 1 Answer

Cinematics in Racing Games 0 Answers

How Does Weapon Selection Work In-Game? 0 Answers

Unity render lag questions 1 Answer

Update/Late Update jitter problem(non FixedUpdate related) 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