- Home /
Switch focus to Unity on Mac Mojave makes git refreshing index for over 30 seconds
It takes over than 30 seconds whenever I switch app focus to Unity Editor on Mac. Mouse indicator becomes loading and I can do nothing within Unity but I can switch to other apps.
There is nothing on Console log, no weird high cpu usage app, I turned off any post-processing scripts and even close all editor tabs, uninstall plugins, extensions. Nothing works.
UnityEditor profiler doesn't event show the delay.
The only thing I find is that
1. Run git status on Terminal (normal activity)
2. Switch to Unity (mouse becomes loading)
3. Switch back to Terminal and run
git status will shows
Refresh index: 5% (17834/324259)
and this process takes over than 30 secs. It's mostly the same time of loading mouse hangs
Then I upgrade git / Mac OS still having this issue.
I have this issue for Unity 2018.1, and upgraded to 2018.3.2f1 this issue still happens. Then I bought a new iMac 5K 2019 of the highest customize of everything, this still happens.
Only Visual studio / Visual Code / Unity plus a Symless (an input share software) are installed on the new iMac.
I brew upgraded git to 2.21.0.
I do think Unity is doing something about the git index. This issue won't take long enough for empty project. And exactly the same project on Windows works perfectly.
So any helps or ideas about what unity does when switching forcus there?
27366555 received out of sequence notification I find out that every time I switch focus to unity, I get this message from unrelated random service. Why?
Your answer
Follow this Question
Related Questions
Why does my Unity Editor appear to be corrupted? 0 Answers
Unaccounted time between: WaitForTargetFPS and GPUProfiler.EndQueries 0 Answers
Bad Performance in Unity? 1 Answer
Performance problem after build 0 Answers
Unity 2021.2 Apple Silicon Performance Issues with DynamicGI.UpdateEnvironment() 0 Answers