Prefab .sbcb2 Generation - Laggy / Not Performant
I like the idea that you're finally allowing us serialized prefab generation for non-vanilla prefabs. It does truly help performance of spawn in general. However, there are two problems with your approach.
1) You're not respecting existing .sbcb2 files that were generated before a mod was deployed to the workshop, or that have been deployed since the prefab was spawned in a world. This means that every time that prefab spawns for the first time in a live game, you're overwriting the existing .sbcb2 with what is likely the exact same data. Which leads to...
2) You're not threading the .sbcb2 generation, so game hitching / stalling / chopping / whatever you want to call it is pretty extreme on most larger prefabs.
Please either thread the .sbcb2 generation, or respect that a .sbcb2 file already exists for a given prefab and run with that. You can compare file modification dates (or one of my other file comparison methods) if you're worried about having a stale .sbcb2 file on prefab spawn.
The EEM team.