tolovan
tolovan
About Me
Connect
LOCATION
Not Specified
WEBSITE
Houdini Skills
Availability
Not Specified
Recent Forum Posts
Problem with geometry().freeze() June 22, 2011, 1:25 p.m.
Hi Lucas,
I'm having a bit of a memory leak problem with a Python/inlinecpp SOP which might be related to that last bit of information you provided about automatically created frozen geometry (I'm glad I looked here first).
My phython SOP code is roughly this:
geo = hou.pwd().geometry()
partfile = hou.evalParm(“partfile”)
loadmodule.LoadPartFile(geo, partfile)
where LoadPartFile is an inlinecpp code that loads binary data and generates points (tons of it). This code starts accumulating memory when I do a flip book and never frees it. However if I change the code to:
partfile = hou.evalParm(“partfile”)
loadmodule.LoadPartFile(hou.pwd().geometry(), partfile)
Everything is fine. Note that this one leaks as well even though I don't use geo at all:
geo = hou.pwd().geometry()
partfile = hou.evalParm(“partfile”)
loadmodule.LoadPartFile(hou.pwd().geometry(), partfile)
Could this be related to automatically freezing and not properly freeing this frozen geometry?
Thanks,
–Tolga
I'm having a bit of a memory leak problem with a Python/inlinecpp SOP which might be related to that last bit of information you provided about automatically created frozen geometry (I'm glad I looked here first).
My phython SOP code is roughly this:
geo = hou.pwd().geometry()
partfile = hou.evalParm(“partfile”)
loadmodule.LoadPartFile(geo, partfile)
where LoadPartFile is an inlinecpp code that loads binary data and generates points (tons of it). This code starts accumulating memory when I do a flip book and never frees it. However if I change the code to:
partfile = hou.evalParm(“partfile”)
loadmodule.LoadPartFile(hou.pwd().geometry(), partfile)
Everything is fine. Note that this one leaks as well even though I don't use geo at all:
geo = hou.pwd().geometry()
partfile = hou.evalParm(“partfile”)
loadmodule.LoadPartFile(hou.pwd().geometry(), partfile)
Could this be related to automatically freezing and not properly freeing this frozen geometry?
Thanks,
–Tolga
ptex support in HDK May 18, 2011, 6:49 p.m.
Hi,
I want to process some geometry based on ptex displacements in a SOP plugin. Is there a way to access ptex in HDK?
Thanks.
I want to process some geometry based on ptex displacements in a SOP plugin. Is there a way to access ptex in HDK?
Thanks.