1.10 New Instancing Manager, question about createInstancedEntity

Problems building or running the engine, queries about how to use features etc.
Post Reply
Nickak2003
Goblin
Posts: 272
Joined: Thu Jun 10, 2004 4:19 am
x 26

1.10 New Instancing Manager, question about createInstancedEntity

Post by Nickak2003 »

when I call this, does it always create an additional memory location for the new entity or does it run through and pick a prior one that had setInUse=false?

I am creating and deleting frequently and I am having a memory creep, I guess it's because I should manually be recycling instanced entities? At the moment I only setInUse=false and then later call createInstancedEntity again. I think this is my problem, right? If so, what does setInUse do?
Nickak2003
Goblin
Posts: 272
Joined: Thu Jun 10, 2004 4:19 am
x 26

Re: 1.10 New Instancing Manager, question about createInstancedEntity

Post by Nickak2003 »

Oh, Sorry, looks like I wasn't calling sceneManager->destroyInstancedEntity! Problem resolved.
Post Reply