mikelyndon Posted June 23, 2009 Share Posted June 23, 2009 Hey guys. I'm trying to render out the mesh for a particle fluid sim. When I first open the scene and start rendering out the bgeo files it takes about 7 minutes a frame but very quickly my RAM is used up and the frames start taking longer and longer to render - almost an hour a frame. I've tried setting the SOP cache limit to 512MB and changing memory to always in the main preferences but it doesn't seem to be helping. I'm assuming I need to clear the cache after each file is created. I'm running this through a python shell as well to cut down on memory usage by the ui. I see the clear cache method hasn't been implemented yet in the hou module. I'm thinking of writing up a little script that opens up hython, opens the file, renders a frame, closes the file, and repeats the process. It's not an elegant way of doing things but I can't find another way to clear the memory properly after each frame has rendered. Any suggestions would be greatly appreciated. Mike. Quote Link to comment Share on other sites More sharing options...
benderonline Posted April 13, 2015 Share Posted April 13, 2015 Ha! Hey man, it's Ben - I was looking for an answer to this just today and came across your post! Good times, good times Quote Link to comment Share on other sites More sharing options...
3iart Posted April 14, 2015 Share Posted April 14, 2015 (edited) have you unchecked 'cache simulation' in your dop object? *edit Sorry misunderstood the question. Have you tried unloading all the sops you can? note: some sops you don't want to unload. Edited April 14, 2015 by 3iart Quote Link to comment Share on other sites More sharing options...
StopTheRain Posted August 29, 2019 Share Posted August 29, 2019 Seems to be an ancient topic by now. I personally do not see other solution then scripting sequence of 'load scene, GL render frame, unload scene' commands. I need to render my water simulation mesh using GL render just to daily it. That in my case would be faster then software-rendering the whole frame range. Everything works but RAM usage grows from frame to frame until Houdini crashes. And I have nothing fancy other then Cache SOP that reads the fluid meshes and some geometry processing after that before the final Null SOP that is supposed to be rendered. Here is what I have tried to clear the cache: 1. Use 'sopcache -c' as a post frame script in OpenGL render. Or generally other combinations of flags on 'sopcache' command to restrict the amount of RAM used for cache. 2. Setting 'unload' flag on every SOP (including the final Null SOP) in my objects to be rendered. This can be done manually of with Python pre-render or pre-frame command. 3. Un-bypassing / bypassing SOPs with pre-frame and post-frame Python scripts. Nothing works so far. Is there a reliable non-GUI way to clear Houdini memory cache ? Any other ideas ? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.