Search Issue Tracker
Fixed in 2019.3.X
Votes
5
Found in
5.0.1f1
Issue ID
689310
Regression
No
[Occlusion Culling] Occlusion culling system creates too many files in the Library folder and never deletes them
Steps:
1. Open small project attached by QA (just a scene with some static objects)
2. Bake occlusion culling, save scene
3. Look at no. of files in Library
4. Move some objects and bake occlusion culling again, save scene
5. Look at no. of files in Library
6. Repeat step 4-5 and you will see that the no. files increase a lot and never decrease
Reproducible in: 2019.2.0a6
Take any project with a relatively large scene and take a look at the number of files and the size of the Library folder. Bake Occlusion Culling for the scene and save it. Compare the number of files in the Library folder and their size with the previous numbers.
Move some objects around and rebake occlusion. Clear the baked data and rebake occlusion. Notice that the number of files and the total disk space they take keeps growing and growing at a very fast pace and under no circumstance is it getting lower (meaning we never clear up old data).
This is causing issues on some hard drives formatted as NTFS (like in the case of this bug), where the Library folder has more than 1 million files taking 10 GB. Operating systems don't like that very mush, so we need to find some way of cleaning up the Library folder where possible. (maybe have a Clear cache option similar to the one for Lightmapping)
-
csgulyas
Apr 03, 2019 05:30
I think the best workflow would be, that when we click on the CLEAR button in the Occlusion Culling Window, it would delete all bake cash files, since they are clearly not needed any more.
-
Nick62
Jan 07, 2019 10:33
what about this issue in unity2018 ?
-
J_P_
Mar 15, 2017 19:00
-
BizDevelopment
Aug 16, 2016 07:11
I'm having the same issue on Unity 5.4 too. I can't even compress the project for a backup because of this insane amount of Occlusion files, reached more than 8 million!
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- “[Worker0] Could not generate preview image“ error when opening macOS native plugin in the Inspector with Architecture to build for set to ARM 64-bit
- [iOS] Application.absoluteURL is empty on Awake/Start when opening via deep link with Splash Screen disabled
- Crash on MemoryManager::Deallocate when rapidly calling Addressables.LoadAssetAsync
- Crash on physx::shdfnd::atomicIncrement when adjusting values on a character controller component after entering Play mode in Prefab edit mode
- [Rendering Debugger] [NewInputSystem] Debug Overlays in Play mode throws InvalidOperationException when using New Input System
Resolution Note (fix version 2019.3):
Fixed in 2019.3.0f6