Why is Unity EXTREMELY SLOW?

first of all. I’m using the 2022 version of Unity. Unity takes so long to compile scripts like 1 minute each minor change in a script? why? what? Unity used to be faster. Unity is installed in my hard drive. How can I know if it’s a hardware problem? how to fix it? my cpu is the intel i5-11th gen. and gpu is the radeon rx590 GME

A hard drive certainly slows things down. Any SSD would be better.
First I’d delete the library folder and after the first start, perform “Reimport all assets” from the assets menu.
This both cleans a bunch of caching that can have negative effect on compile time.

Finally, try removing all 3rd party editor tools you have. Especially things that provide new attributes (the things in square brackets above variables) since those execute code on every single script during compile and some are really messy and unsuited for larger projects.

This is not really accurate information.

Attributes on their own don’t do anything, and have basically zero performance impact on their own. It’s what other systems do depending on said attributes during a domain reload, if at all, that can have any impact.

For example, attributes that are used to customise the inspector have zero impact on domain reload.

Hey man wow it’s now 20-30 seconds. i installed unity in my c drive(ssd). before it took over a minute to compile scripts. but is 20-30 seconds normal? my c drive has 22 gb left. do i need to clean my c drive to make unity faster? thanks for your help

22Gb is at the limit. It will not have an impact on Unity rn. but Windows may struggle soon :confused:

Would say 20-30s are still a bit high.

if this works on your unity version,
could be interesting to check what are the slowest parts: