Hacker News new | ask | show | jobs
by Jensson 1437 days ago
> If you're talking about code compiles or script reloads, that's not really what the asset database deals with.

Editor profiler says the asset database v2's AssetDatabase.Refresh calls a function named roughly ~"reload all assemblies". That happens every time you add an empty line to a default code file and at many other times. This didn't happen before, and that is where it spends most of its time.

> That said, they did a lot of work to allow you to handle larger projects with (albeit manual) incremental compilations with asmdefs and the like.

I haven't been able to work around this with asmdefs, if you use an assembly then changing any file in it trigger the above mentioned code reload.

> I'm also pretty sure they also didn't add more code reload points, they just added load bars for when they did the code reloads.

Editor is unresponsive for longer. I know they added more bars, but it is hard to mistake an edit/play cycle taking a second in 2019.1 and then taking 10 seconds in 2020.3 in the same project.

> If you don't want the code to refresh automatically, you can just turn it off.

I want things to reload automatically, disabling that is not a fix.