Blender 2.8 Cycles - Memory is not freed after using Z -> "Lookdev" or "Rendered".
It seems like the data is staying in memory, even when switching back to Wireframe mode.
This causes problems when I go to render (F12).
My scene is pretty large (500K verts) and uses about 10GB+ of memory (RAM).
When I go to render, that's another 10GB+ of memory on top of the cached "Lookdev".
I really don't need anything cached. My materials load fast enough where it doesn't really help.
Note: I just closed Blender - which was in wireframe mode, and freed up 16GB of memory.
That's just insane..
When I re-opened the same project, it was only using about 1-2GB.
If caching is there to speed up re-rendering, then why is my memory doubling?
How do I turn off caching?
EDIT: Steps to Reproduce:
- Open task manager -> performance tab (To watch RAM usage)
- Open a really large scene in Blender. In my case, 500K+ verts and lots of high res textures
- Switch to "Lookdev" in viewport. (This should populate your RAM nicely)
- Switch back to "Wireframe" in viewport
- You should notice that your RAM stays populated and doesn't drop
- Bonus Step: If you now switch to "Rendered" in the viewport, even more RAM will start stacking on top of the RAM that was populated during "Lookdev"
I went from ~4.5GB of used RAM up to ~31GB RAM using the above steps.
I left Blender sitting in the background for 1+ hours and I noticed the RAM usage has slowly been dropping - down about 4GB from where it was. Potential memory leak?