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
- Inspector's custom tooltip is displayed incorrectly when the name is truncated in UI toolkit
- Crash on ScriptableRenderLoopDraw when rendering a specific VFX in Play Mode
- The script is not renamed in the Project window when renaming and a compilation Error is present
- Average FPS in Play Mode degradation on a newly created BiRP project when it's upgraded from 2020.3.48f1 to a newer Editor version
- DecoratorDrawer indentation is incorrect when it is called with EditorGUI
Resolution Note (fix version 2019.3):
Fixed in 2019.3.0f6