Improve baking time

In our project, when subscene baking does not get stuck, it takes around 15-30s. It’s not the end of the world, but it can be quite a pain over time, especially if you’re a programmer and baking restarts after every compilation.

Unity devs, is this 15-30s normal and intended? Or are there big plans to improve this? Are there tips on how to optimize this on our end? Maybe structure our Authoring assemblies in special ways that ensure minimal rebaking after code change?

I don’t think this should be happening. Make sure you put all of your authoring scripts in authoring assemblies.

1 Like

Not sure how your project is structured, maybe there’s a way to only process those that are dirtied?

Tip from tertle is to separate components from systems into different assemblies as well so any baking is not triggered by changes to logic. Haven’t actually done this yet with my project but the actual scene complexity isn’t there to warrant it yet

2 Likes

Thanks for the tip! It’d be cool to have official documentation / recommendation on that from Unity.