tolovan
tolovan
About Me
Connect
LOCATION
Not Specified
ウェブサイト
Houdini Engine
Availability
Not Specified
Recent Forum Posts
Problem with geometry().freeze() 2011年6月22日13:25
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 2011年5月18日18:49
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.