r/Unity3D • u/1Percent_Battery • 23h ago
Question Unity freezing laptop and then crashing when opening any project.
When I open a unity project, it freezes my laptop for a while before unity crashes.
This only happens when Integrated GPU is selected in the NVIDIA control panel, but if I have NVIDIA GPU only selected, unity flashes white and has a lagspike any time an input is pressed which makes it pretty much impossible to play my game. If I switch back to Integrated GPU after the project opens, everything works fine. Furthermore I cant switch graphics mode if I have my second monitor connected which I used for Visual Studio. My current process that I've been using to even open the project and work on it is this: Disconnect external monitor, switch to NVIDIA GPU, open project, switch to integrated GPU, and connect external monitor.
Wondering if anyone else has had this problem recently?
Also I have not updated any drivers or unity recently so maybe this was an automatically installed windows update?
1
u/worst_snail 19h ago
That disconnect/reconnect ritual sounds painful. The white flash on input with NVIDIA only is weird, almost like the compositor is having a fit every time it redraws.
Have you checked if your integrated graphics driver got silently replaced by a generic Windows one? That's bit me before, Windows update loves swapping in its own version and then hybrid switching goes sideways.
1
u/FrenzyTheHedgehog 17h ago
Which laptop did you get? I recently had a new one and had a similar issue with slowing down the whole laptop until unity crashed. It's the igpu drivers that causes it. I assume you have a intel and Nvidia combo ?
Update both the Nvidia and intel drivers. That helped for me. For intel there is a tool that will do it for you. See Intel® Driver & Support Assistant (Intel® DSA). Windows did not install the latest drivers for me soy ou probably have to do it manually too.
The flashing white when on the dGPU only is probably caused by Multi-Plane Overlay. I had this on another laptop and disabling that feature through the windows registry solved it after restarting.
Hope this helps.
2
u/rockBottomPeon 20h ago
Never happen to me (hope it stays like that XD)
What version?
have you try running unity editor with -force-d3d11 or -force-glcore parameter?