Page MenuHome

Cycles: Free unused image buffers when rendering with locked interface
ClosedPublic

Authored by Sergey Sharybin (sergey) on Apr 2 2015, 4:29 PM.

Details

Summary

It is still possible to free a bit more memory by detecting builtin images
which are not used by shaders, but that's not going to improve memory usage
that much to bother about this now.

Such change brings peak memory usage from 4.1GB to 3.4GB when rendering
01_01_01_D layout scene from the Gooseberry project. Mainly because of
freeing memory used by rather huge environment map in the viewport.

Diff Detail

Repository
rB Blender

Event Timeline

Sergey Sharybin (sergey) retitled this revision from to Cycles: Free unused image buffers when rendering with locked interface.
Sergey Sharybin (sergey) updated this object.
Campbell Barton (campbellbarton) edited edge metadata.
Campbell Barton (campbellbarton) added inline comments.
intern/cycles/blender/blender_sync.cpp
364

Maybe add comment.

"Sync is a convention for this API, but currently it frees unused buffers"

This revision is now accepted and ready to land.Apr 3 2015, 10:44 AM
Sergey Sharybin (sergey) edited edge metadata.

Updatr fot cambo's review

intern/cycles/blender/blender_sync.cpp
364

Done.

This revision was automatically updated to reflect the committed changes.