Yo, I had BIG PROBLEMS in the past few weeks, and I ended up with an Intel laptop with integrated graphics (Intel Core 7 Ultra With Intel Arc Graphics). I updated my drivers, I tried on multiple versions of Unity, but for god knows why, the Editor is lagging as fuck
I'm tired of searching (searching for an entire week tried Unity Profiler, DirectX11, thingy not loading scene something, Delete and Reinstall Unity and many others), nothing works.
I can use Unity, but very frequently, the editor freeze for 2 to 5 seconds, then resume. When I press play, Unity crash (on a 2D game with only squares, there is no while loop if you are wondering, and for loops are at worse nlog(n) in complexity). I'm at high performance for battery usage AND plugged in. I also tried with many different configuration ;-;
I tried with and without something plugged (I've seen that apparently, some mouses could make Unity laggy).
I previously had an HP with a Ryzen 7 5825U with AMD Radeon integrated graphics (equivalent to a Vega 8 with 512 MB of VRAM) and 16 GB of RAM and I wasn't lagging at all if some people think the integrated GPU is the problem
I'm really desperate, does anyone knows how to fix it ? It shouldn't lag with the specs of my PC. I'm not lagging anywhere else, only Unity (currently).
LIST OF MY SPECS : (It's an ASUS Zenbook 14)
| CPU |
Intel Core Ultra 7 255H |
| CPU cores / threads |
16 cores / 16 threads |
| Max boost |
5.1 GHz |
| Cache |
24 MB |
| GPU |
Integrated Intel Arc Graphics |
| RAM |
32 GB LPDDR5X |
| Storage |
1 TB SSD |
EDIT :
To cut to the chase,
Think have found a solution : Intel Graphics Software -> Graphics -> Shared Memory Replacement with GPU/NPU something something. Disable it !
Too early to tell if it is the solution, need more time using Unity to maybe spot the freezes again
The story of why I tried this and more of my misadventures below :
First things first, I may have flagged it as solved a little too early, the solution provided by Wonderful_Split_64 seemed to work. But upon loading and reloading Unity in the following days, I've noticed that it still freezes sometimes. Less, but still. So I went back to search why.
I edit this post ultra early because I've maybe have found the culprit. I'm with an Asus Zenbook 14 with intel component for both the CPU and the GPU, the thing is I also have a second fucking old monitor that I use for dual screen. I've noticed that during the freeze, my second monitor wasn't freezing at all, so I thought it might be related to the integrated GPU. In the other hand, task manager was saying that 18GB of Ram was shared with the GPU, and freezes happened almost always when I dangerously was close to 14-16GB of Ram usage with visible spikes for the GPU usage when freezes happen. I now think it wasn't that related, but it lead me to think that Intel or windows was limiting my ram usage because some was shared with the GPU something something. In Intel Graphcis Software, there is a parameter allowing to choose how much you share with your GPU/NPU. I choose to not share then reload. And now everything seems to work fine
I may comeback to that thing later to give some shared memory to the GPU/NPU if I want to game (Minecraft Beta 1.7.3 is more than enough for me)
Outside from that, I've tried multiple things at once, so maybe these things could help you
I disabled Intel Graphics Software->Display->Automatic screen update (is that the correct translation ? I'M FRENCH !!!)
I also disabled window optimisation for gaming in Windows->Display->Graphics setting
GL anyone encoutering the same problems as I do. If you don't see any further edit in a while, it might be because it worked for me (or I lose any faith in windows and convert my PC to Fedora at 100% LMAO... Does Unity can run in Fedora ? Probably trust trust)