OSX - Possible Memory Leak

I’m not sure if this is an Xcode thing but…

Cocos4, Xcode 12.3, OSX 11.0.1, running Mac Project.

I have started my first scene from AppDelegate. The scene does nothing so I have a black window. I’ve not loaded any assets. Just created the app/director and trigger this empty scene.

The memory of the app just keeps rising through the roof. The profiler showed the odd Memory leak for _mtlCommandBuffer in CommandBufferMTL::beginFrame() - but it appeared very minor and very infrequent.

I stopped the app when it went over 500mb. I stopped recording much earlier.

Just wondered if anyone had any thoughts on this.

Interesting. I can probably test this today.

Check this PR and see if it helps at all: https://github.com/cocos2d/cocos2d-x/pull/20131

I already have that code in the branch - was pretty sure I am up to date.

Just come back to this after taking the latest Big Sur update… now looks much more stable.

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.