System Information
Operating system: Has been reported on Mac and Linux, has been observed under Windows as well
Graphics card:
Blender Version
3.1.2 but has been reported as early as January 28
Short description of error
For context, I am reporting on behalf of the SheepIt Renderfarm team.
Our users and we noticed a significant increase in RAM consumption and IO when using packed textures as compared to externally linked textures.
In a test a with a 3 GB Blend file 151GB were read from disk.
The report in January was about a project that could be rendered on a 16 GB Mac with linked textures but would use up to 60 GB when packed.
I will include their final verdict:
I’ve found the issue.
I went through intensive testing, I compressed the textures as best as possible and that made the memory peak go down from 49 gigs to about 20 gigs… that’s pretty good but not much of a solution.
I then found out that what causes most of the massive memory spike lies in Blender’s unpacking algorithm.
So I unpacked the file, turned on Relative Path and zipped the folder with all the files. This made the build time BLAZING FAST (we’re talking mere seconds) and the memory peak dropped to… 3 gigs!!!
We cannot provide you with any of these files so I tried to recreate it. In my tests relative.blend peaked at 850 MB while packed.blend used 1380 MB. I understand that in this case the difference could just be the extraction of the the textures into RAM so I am not really satisfied with this example. I will try to provide a better one if need be.
Exact steps for others to reproduce the error
- Unzip attached file
- Open relative.blend
- Check RAM memory consumption
- In File → External Data click in Pack Resources
- Check RAM memory consumption
- (Optionally you can load the packed.blend file to skip a few steps)
or
- Add objects with PBR materials.
- Case A: Reference to the textures locaton
- Case B: Pack them into the blend file using File -> External Data -> Pack Resources
- Start rendering