[Interest] Qt3D memory leaks

Igor Mironchik igor.mironchik at gmail.com
Mon Apr 10 12:20:23 CEST 2017


Hello,

I guess that Qt3D has huge memory leaks.

You can check it on this example: https://github.com/igormironchik/3Dtree

It's 3D tree, that grows year by year.

By default tree will grow 5 years (5 minutes).

When tree grown you can restart tree. And here I delete all resources:

void

MainWindowPrivate::createTree()

{

if(m_tree)

{

for(constauto&e:m_rootEntity->childNodes())

e->deleteLater();

}

m_tree=newBranch(m_startPos,m_endPos,c_startBranchRadius,

true,m_rootEntity);

m_tree->setAge(0.0f);

m_tree->updatePosition();

m_tree->placeLeafs();

}

But a lot of memory are eaten.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20170410/42101a35/attachment.html>


More information about the Interest mailing list