Group Group Group Group Group Group Group Group Group

Memory Leakage Chapter 9-Scene-Graph Final

I would like to thank you and congratulate ou on this excellent book. I found a memory leakage in the scene graph by looking at the memory pane you would see the memory consumption is always increasing.

https://www.dropbox.com/s/ad91l4qoizeywe1/Screen%20Shot%202020-09-14%20at%2012.14.56%20AM.png?dl=0

I have been trying to find the leakage but so far without luck.
Thank you for your support

I had a look in Instruments, and it appears to be from an Apple framework, so there’s nothing we can do about it.
Searching on the internet, it may be that it’s a debug leak, and will go away in release :crossed_fingers:. I ran the project for about an hour, and it seemed to top out at 158mb and stay there.

This time I used Xcode 11.7 (11E801a) and changed the scheme to release but I kept the checkbox on to debug and the leakage is still there. Chapter 8 USD animation the Skeleton waving there was also a leakage.


I will keep trying to find the leakage. Hoping for the best.

Cheers :slight_smile:

After running Leaks profile from Instruments it looks like the leakage is from ModelIO

When running Chapter 8 Skeleton waving on an iOS device there is no memory leakage.

Running through instruments on macOS, my leak was minimal and from QuartzCore.

I had a ModelIO leak of 48 bytes in chapter 8.

Could be something to do with textures, as ch 9 has textures and ch 8 doesn’t.