r/unity • • 22d ago

Solved Unity Editor lag with ASUS Intel Laptop ???

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)

CPUIntel Core Ultra 7 255H
CPU cores / threads16 cores / 16 threads
Max boost5.1 GHz
Cache24 MB
GPUIntegrated Intel Arc Graphics
RAM32 GB LPDDR5X
Storage1 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)

1 Upvotes

4 comments sorted by

2

u/Wonderful_Split_64 22d ago

the 2-5 second freezes sound more like something outside unity than the GPU. Two things I'd check on that laptop:

- Windows Defender scanning the project. Unity writes thousands of small files into Library/ and Defender checks every one, which shows up as exactly these freezes. Add your project folder and the Unity install folder to the exclusions (Windows Security > Virus & threat protection > Manage settings > Exclusions).

- the MyASUS fan profile. pretty sure Zenbooks ship on Standard or Whisper, which caps CPU power no matter what the Windows power plan says. set it to Performance while plugged in.

for the crash on play, the reason is in %LOCALAPPDATA%\Unity\Editor\Editor.log (or Editor-prev.log if you already reopened unity). The last 30 lines or so usually say what died. paste them here and people can actually tell you what's wrong.

2

u/Drak_XIII 22d ago edited 22d ago

I already tried windows defender.
However, I didn't check fan profile... SHAME ON ME !!!!!!!!

Now everything works fine, My laptop is just a little bit noisier, but that's normal given the dimensions and what I'm working with

THANKS A LOT !!!

No amount of reddit questions or AI asking could solve my problem

And for the log, It was long before and don't show anything, only me struggling with Unity.
Didn't know fans could force CPU to be capped. That's weird, but understandable

Edit : For OBSCUR reasons, switching to max perf with the fan, launching Unity, then going back to lowest settings do not make Unity Editor laggy anymore ??? Why not

1

u/positivcheg 22d ago

Nah, I’m not on a windows laptop, macOS. Constantly see Unity editor eating 700%+ CPU almost freezing my MacBook Pro.

Started seeing it somewhere since Unity 6000. Was kinda okay on previous versions. Don’t remember such shit.

1

u/Laicbeias 21d ago

If you use unitys search tool used to leak memory and crash when it was open. It also kinda makes the editor slower since it listens to any editor dirty stuff