Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MacOS 下面用Xcode调试,空项目挂着不动内存都会一直增加 #8

Open
CaiCQ opened this issue Aug 12, 2020 · 1 comment

Comments

@CaiCQ
Copy link

CaiCQ commented Aug 12, 2020

MacOS 下面用Xcode调试,空项目挂着不动内存都会一直增加,每一两秒就增加0.1M,永远不会降低,看看什么原因

@u0u0
Copy link
Owner

u0u0 commented Aug 13, 2020

mark下调试结果,内存涨在presentDrawable。
[_mtlCommandBuffer presentDrawable:DeviceMTL::getCurrentDrawable()];
用xcode新建mac和iOS的metal项目,mac存在通用的问题, iOS没有。
基本确认是mac的metal驱动代码有bug。
presentDrawable内部调用addPresendScheduleHandler有内存泄漏。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants