Jump to content

[SOLVED] Deserialization of ObjectMeshSkinned appears to result in memory leak


photo

Recommended Posts

Posted

Hi,

 

I thought I'd just feed back something I've found in my code. Repeated calls to ObjectMeshSkinned::restoreState appears to result in a memory leak.

 

Basically my code does something like this.

 

ObjectMeshSkinned oms = new ObjectMeshSkinned("blah")

Buffer buf = new Buffer();

 

buf.seekSet(0);

oms.saveState(buf);

 

...

 

buf.seekSet(0);

oms.restoreState(buf);

 

... Do some more stuff which modifies the state of my skinned mesh

 

buf.seekSet(0);

oms.restoreState(buf);

 

After each subsequent call to restoreState there is a growth in memory usage. If you were to do this call numerous times, the commited memory of the Unigine process keeps growing and growing. I have a workaround for this, but I just thought I'd feed this back to the devs to look into.

 

 

 

 

 

 

 

 

×
×
  • Create New...