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
1
Question by jarm__ · Sep 01, 2016 at 05:13 PM · performancemacpccpu usage

Unity is performing 2x better on weaker macbook than on beast PC -- what should I look for as the reason for this?

I have a project that is very CPU-intensive as it involves a large number of cellular automata. It has always run smoothly on my old PC and my current macbook pro. My old PC bit the dust, and now my newer, more powerful PC seems to have trouble with this project. The macbook with weaker specs runs it much better.


The difference in performance is severe. Using the profiler, the same scripts in the same project in the same version of unity take 1/3 the ms on my mac as on my pc. Below are the specs for both systems.


PC specs:
Operating System: Windows 7 Professional 64-bit (6.1, Build 7601) Service Pack 1
Processor: Intel(R) Core(TM) i7-5820K CPU @ 3.30GHz (12 CPUs), ~3.3GHz
Memory: 32768MB RAM
Available OS Memory: 32668MB RAM
Video Card: NVIDIA GeForce GTX 980 Ti


Macbook specs:
Processor: 2.9GHz Intel Core i7
Memory: 8 GB 1600 MHz DDR3
Graphics: Intel HD 4000 1536 MB


Any ideas for looking in to why this might be happening? It seems so bizarre given the specs of the two systems that the macbook would so vastly outperform the PC. In fact, looking around at other threads it would seem that even an equal-spec PC should well outperform any mac with unity. Thank you for any advice you might have.


EDIT: Unity Version: 5.3.2f1


EDIT: Profiler Images:


In comparing the two, it would seem that GC and vsync are both taking much more perf on PC than Mac. Although my script is spiking way worse on PC as well.


PC alt text


MAC alt text

profiler-pc.jpg (311.6 kB)
profiler-mac.jpg (237.3 kB)
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 doublemax · Sep 01, 2016 at 05:29 PM 1
Share

CPU-intensive as it involves a large number of cellular automata.

Pure C# code, no OpenCL, Open$$anonymous$$P or other fancy tricks? 64 Bit version of Unity under Windows? If yes in both cases i would suspect that a different C# compiler is used on both platforms, but i couldn't find any information about this.

Also, under OSX OpenGL is used, DirectX under Windows. $$anonymous$$aybe you're doing something in your code that just happens to be much faster with OpenGL or the OSX specific OpenGL implementation.
avatar image tanoshimi · Sep 01, 2016 at 05:54 PM 1
Share

Please paste the profiler output in both cases.

avatar image jarm__ tanoshimi · Sep 01, 2016 at 07:56 PM 0
Share

Thanks for the reply!

I updated the post with screens from the profiler for each PC and $$anonymous$$ac

2 Replies

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

Answer by jarm__ · Jan 27, 2017 at 10:49 PM

This was finally resolved. It had nothing to do with Unity. It was Windows 7 Power Options. Apparently there's an issue in Windows 7 with CPU parking, where parked CPUs fail to unpark even when the CPU becomes stressed.

This is resolved by switching your Power Options from "Balanced" (the default) to "High Performance"

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 jarm__ · Sep 08, 2016 at 08:39 AM

This was solved by deleting my Library folder. http://answers.unity3d.com/questions/814852/unity-project-running-slow-after-running-smoothly.html

Thank you for everyone who looked at this and offered advice.

I feel pretty silly.

Comment
Add comment · Show 5 · 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 doublemax · Sep 08, 2016 at 08:43 AM 0
Share

Sorry, but which library folder?

avatar image jarm__ doublemax · Sep 08, 2016 at 10:48 AM 1
Share

The Unity project library folder. After deleting that and re-opening the project, it rebuilt and subsequently ran with expected smoothness.

avatar image doublemax jarm__ · Sep 08, 2016 at 10:59 AM 0
Share

Ah, i see. I thought in the Unity folder or somewhere in Windows ;)

Thanks!

avatar image jarm__ · Dec 27, 2016 at 07:15 PM 0
Share

So this worked at first. The first time I deleted the Library folder and rebuilt, the project ran extremely smoothly on the more powerful PC. In my elation, I didn't take a profiler screen, but the peaks were under 20ms, as opposed to 60ms on the above grab from before deleting the Library folder.

However, the next time I relaunched the project, the slow performance was back. I tried to delete the Library folder again, rebuild and relaunch, but the problem persisted. I tried grabbing the original backup of the project and repeating the process, but the problem persisted. I tried exporting the project as a package and importing into a fresh project, but the problem persisted. I tried deleting the temp files directory, but the problem persisted.

I am at a complete loss. It seems like something has gone wrong in passing the project back and forth from mac to PC, but I cannot find what it is. Am I missing something about how Unity works in terms of editor settings? Is the project pulling in bad settings every single time somehow?

avatar image danw_unity ♦♦ jarm__ · Jan 27, 2017 at 10:21 AM 0
Share

The question is: why does Game_RD_$$anonymous$$aze_01.Update vary so much in execution time on the PC? Is there some code in there that behaves differently depending on Time.deltaTime? Or is there code that waits on completion of other tasks in threads or coroutines?

Dan

Unity Support

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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

No me muestra el cuello de botella en Unity Profiler 1 Answer

Open project from MAC at PC 2 Answers

project management of a Multi platform asset 1 Answer

Mac os x development to PC 1 Answer

Can you transfer a Unity Pro license from a Mac to a PC? 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