The baking itself is fine, but when it gets to FinalizeCells, it spams these to console:
Compute is used in a few places during baking, mainly for calculating Virtual Offset, Rendering Layer Masks and Sky Occlusion. If you enable full call stacks, do you see where the error is coming from? And could you try without either of those features enabled (Disable in lighting window)
Something very like this was fixed a while ago by batching compute jobs into smaller dispatches. Which (exact) Unity version are you on?
With Sky Occlusion disabled, there are no errors. The volume is still only partly written with small probe separation.
Good question, I was testing on Unity 6000.0.10f, which is too old at this point (time flies!)
Updating to the latest (6000.0.28f1), I can see the exact same errors, as theyâre CoreRP-related. CoreRP and URP are at 17.0.3. It doesnât seem I can update them further.
Turns out Iâm getting these errors only from EncodeShadingDirection:
Hmm I see, looks like whoever made the fix for Virtual Offset and Rendering Layer Mask neglected to do the same change for Sky Occlusion baking.
Updating to the latest (6000.0.28f1), I can see the exact same errors, as theyâre CoreRP-related. CoreRP and URP are at 17.0.3. It doesnât seem I can update them further.
Just FYI, core packages (like URP) are bound to editor versions. They sometimes change without the version number being bumped. The package manager should still use the correct version. You can find them in the editor install folder in Editor/Data/Resources/PackageManager/BuiltInPackages
I was able to reproduce it, but its expected behavior. With APV, you set the runtime VRAM budget up-front. What is happening here is that the entire memory budget is being used. When this happens, the behavior depends on your choice streaming setting.
With no streaming => No more data will be loaded. You only get whatever was loaded into VRAM first. (The case in this scene)
With GPU streaming enabled => Data will be unloaded and loaded from VRAM as you move the camera around, prioritizing nearby data.
With Disk streaming enabled => Same as with GPU streaming, but the data will additionally be unloaded/loaded from CPU memory.
I admit this isnât super intuitive. I recently added a warning to give you some kind of indication this is happening, but it isnât on older editor versions. Donât remember exactly when it landed:
You can use the rendering debugger to visualize this kind of thing. If you enable display cells, youâll see the cells that couldnât be loaded into VRAM marked with red:
Ah⌠I see. Didnât realize that. So the baked data is correct, itâs just I canât see it all at once? Got it, no problem then. Having a clear console warning would definitely help, yes.