I think some facts must be made clear:
* You cannot control when the OpenGL driver releases the memory it
claimed in a previous instant.
* You cannot control when the operating system claims back the memory
pages that a process requested, and in addition, many times it is
simply not possible to do it due to memory fragmentation.
* At most, what you can do is to check that your program is not leaking
memory with a special tool, as the one I recommended (valgrind for
CPUs, other tools for GPUs).
System memory tools are completely unreliable for this specific purpose.
Bruno Oliveira writes:
> I tried removing the children with m_rootNode->removeChildren(0,
> m_rootNode->getNumChildren());
> but this results in some memory being still allocated.
>
> After that, I move the mouse around a bit in the clean scene, and the
> memory starts being freed. However, It never gets to the initial
> value, there is always some memory floating around.
>
> 2016-05-13 15:16 GMT+01:00 Alberto Luaces
> <
alu...@udc.es>: