Re: [Interest] Qt3D memory leaks

2017-04-13 Thread Igor Mironchik
Hi, More data (in MB): 1. 136.1 2. 143.5 (+7.4) 3. 145.9 (+2.4) 4. 147.2 (+1.3) 5. 150.1 (+2.9) 6. 152.3 (+2.2) 7. 152.0 (-0.3) 8. 154.7 (+2.7) I guess that small memory leaks still exist. P.S. 5 years tree has 341 branches and 512 leafs. All of them I delete on restart of tree (I chec

Re: [Interest] Qt3D memory leaks

2017-04-13 Thread Igor Mironchik
Hi, 13.04.2017 22:20, Igor Mironchik пишет: Hi, The entity takes ownership of any components that are parentless when added. This is done using the usual QObject ownership mechanism so the components will be deleted by the entity when it is being destroyed just like any other QObject parent

Re: [Interest] Qt3D memory leaks

2017-04-13 Thread william.croc...@analog.com
On 04/13/2017 02:43 PM, Igor Mironchik wrote: 13.04.2017 20:36, Sean Harmer пишет: On 13/04/2017 16:31, Igor Mironchik wrote: Hi, 13.04.2017 17:55, Igor Mironchik пишет: Am I right that QEntity doesn't delete its children on destruction and just removes them from scene? I asked this i

Re: [Interest] Qt3D memory leaks

2017-04-13 Thread Igor Mironchik
Hi, The entity takes ownership of any components that are parentless when added. This is done using the usual QObject ownership mechanism so the components will be deleted by the entity when it is being destroyed just like any other QObject parent. There may be a leaks elsewhere but I don't t

Re: [Interest] Qt3D memory leaks

2017-04-13 Thread Igor Mironchik
13.04.2017 20:36, Sean Harmer пишет: On 13/04/2017 16:31, Igor Mironchik wrote: Hi, 13.04.2017 17:55, Igor Mironchik пишет: Am I right that QEntity doesn't delete its children on destruction and just removes them from scene? I asked this in context of QEntity::addComponent()... Seems

Re: [Interest] Qt3D memory leaks

2017-04-13 Thread Sean Harmer
On 13/04/2017 16:31, Igor Mironchik wrote: Hi, 13.04.2017 17:55, Igor Mironchik пишет: Am I right that QEntity doesn't delete its children on destruction and just removes them from scene? I asked this in context of QEntity::addComponent()... Seems that entity doesn't delete anything. And

Re: [Interest] Qt3D memory leaks

2017-04-13 Thread Igor Mironchik
Hi, 13.04.2017 17:55, Igor Mironchik пишет: Am I right that QEntity doesn't delete its children on destruction and just removes them from scene? I asked this in context of QEntity::addComponent()... Seems that entity doesn't delete anything. And documentation is unclear in it: voidQEnti

Re: [Interest] Qt3D memory leaks

2017-04-13 Thread Igor Mironchik
Hi, 13.04.2017 17:31, william.croc...@analog.com пишет: On 04/13/2017 09:21 AM, Igor Mironchik wrote: Hi, Fresh data: First grow of the tree of 5 years - 135,1 MB First restart and 5 years - 173,8 MB Second restart - 203,6 MB Is it a fragmentation? Or something else? Am I right that QEn

Re: [Interest] Qt3D memory leaks

2017-04-13 Thread Igor Mironchik
13.04.2017 17:31, william.croc...@analog.com пишет: On 04/13/2017 09:21 AM, Igor Mironchik wrote: Hi, Fresh data: First grow of the tree of 5 years - 135,1 MB First restart and 5 years - 173,8 MB Second restart - 203,6 MB Is it a fragmentation? Or something else? Are those numbers for L

Re: [Interest] Qt3D memory leaks

2017-04-13 Thread william.croc...@analog.com
On 04/13/2017 09:21 AM, Igor Mironchik wrote: Hi, Fresh data: First grow of the tree of 5 years - 135,1 MB First restart and 5 years - 173,8 MB Second restart - 203,6 MB Is it a fragmentation? Or something else? Are those numbers for Linux or Windows? 13.04.2017 15:39, william.croc...@

Re: [Interest] Qt3D memory leaks

2017-04-13 Thread Igor Mironchik
Hi, Fresh data: First grow of the tree of 5 years - 135,1 MB First restart and 5 years - 173,8 MB Second restart - 203,6 MB Is it a fragmentation? Or something else? 13.04.2017 15:39, william.croc...@analog.com пишет: On 04/13/2017 08:34 AM, Igor Mironchik wrote: Hi, Strange, I launch 3D

Re: [Interest] Qt3D memory leaks

2017-04-13 Thread Igor Mironchik
Hi, With example of error: ==1834== Thread 1: ==1834== Syscall param writev(vector[...]) points to uninitialised byte(s) ==1834==at 0x7C5340D: ??? (syscall-template.S:84) ==1834==by 0xD4AFF28: ??? (in /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0) ==1834==by 0xD4B031C: ??? (in /usr/lib/x

Re: [Interest] Qt3D memory leaks

2017-04-13 Thread william.croc...@analog.com
On 04/13/2017 08:34 AM, Igor Mironchik wrote: Hi, Strange, I launch 3Dtree on Linux under valgrind: ==4321== HEAP SUMMARY: ==4321== in use at exit: 439,965 bytes in 6,185 blocks ==4321== total heap usage: 2,207,719 allocs, 2,201,534 frees, 1,241,469,509 bytes allocated ==4321== ==4321== L

Re: [Interest] Qt3D memory leaks

2017-04-13 Thread Igor Mironchik
Hi, Strange, I launch 3Dtree on Linux under valgrind: ==4321== HEAP SUMMARY: ==4321== in use at exit: 439,965 bytes in 6,185 blocks ==4321== total heap usage: 2,207,719 allocs, 2,201,534 frees, 1,241,469,509 bytes allocated ==4321== ==4321== LEAK SUMMARY: ==4321==definitely lost: 1,0

Re: [Interest] Qt3D memory leaks

2017-04-13 Thread Igor Mironchik
Hi, You will need a custom material as the built in materials don't support instancing out of the box - this is waiting on the shader generator that is in development at the moment. In what version of Qt do you guys guess to add instancing support in built in materials? Thank you. __

Re: [Interest] Qt3D memory leaks

2017-04-13 Thread Sean Harmer
On 13/04/2017 10:14, Igor Mironchik wrote: Hi, 13.04.2017 12:02, Sean Harmer пишет: Hi, On 13/04/2017 09:33, Igor Mironchik wrote: Hi, 13.04.2017 9:58, Sean Harmer пишет: Hi, On 13/04/2017 07:09, Igor Mironchik wrote: Hello, 3Dtree has been updated. Now autumn is animated. Removed han

Re: [Interest] Qt3D memory leaks

2017-04-13 Thread Igor Mironchik
Hi, 13.04.2017 12:02, Sean Harmer пишет: Hi, On 13/04/2017 09:33, Igor Mironchik wrote: Hi, 13.04.2017 9:58, Sean Harmer пишет: Hi, On 13/04/2017 07:09, Igor Mironchik wrote: Hello, 3Dtree has been updated. Now autumn is animated. Removed hand-made classes of leaf geometry and mesh. Now

Re: [Interest] Qt3D memory leaks

2017-04-13 Thread Sean Harmer
Hi, On 13/04/2017 09:33, Igor Mironchik wrote: Hi, 13.04.2017 9:58, Sean Harmer пишет: Hi, On 13/04/2017 07:09, Igor Mironchik wrote: Hello, 3Dtree has been updated. Now autumn is animated. Removed hand-made classes of leaf geometry and mesh. Now example uses ready mesh prepared in Blender

Re: [Interest] Qt3D memory leaks

2017-04-13 Thread Igor Mironchik
Hi, 13.04.2017 9:58, Sean Harmer пишет: Hi, On 13/04/2017 07:09, Igor Mironchik wrote: Hello, 3Dtree has been updated. Now autumn is animated. Removed hand-made classes of leaf geometry and mesh. Now example uses ready mesh prepared in Blender. Modified a little constants of the tree. Exampl

Re: [Interest] Qt3D memory leaks

2017-04-12 Thread Sean Harmer
Hi, On 13/04/2017 07:09, Igor Mironchik wrote: Hello, 3Dtree has been updated. Now autumn is animated. Removed hand-made classes of leaf geometry and mesh. Now example uses ready mesh prepared in Blender. Modified a little constants of the tree. Example looks nice. This is a benchmark of your v

Re: [Interest] Qt3D memory leaks

2017-04-12 Thread Igor Mironchik
Hello, 3Dtree has been updated. Now autumn is animated. Removed hand-made classes of leaf geometry and mesh. Now example uses ready mesh prepared in Blender. Modified a little constants of the tree. Example looks nice. This is a benchmark of your video card, because leafs and branches are sta

Re: [Interest] Qt3D memory leaks

2017-04-11 Thread Igor Mironchik
Hi, I fixed a little 3Dtree. Now branches positions are correct. And I know that not all leafs is visible (this is because leaf geometry is implemented as plain which renders only on one side). 10.04.2017 13:20, Igor Mironchik пишет: Hello, I guess that Qt3D has huge memory leaks. You ca

[Interest] Qt3D memory leaks

2017-04-10 Thread Igor Mironchik
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 MainWin