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

关于lua多线程gc? #600

Open
RJie opened this issue Jul 8, 2024 · 3 comments
Open

关于lua多线程gc? #600

RJie opened this issue Jul 8, 2024 · 3 comments

Comments

@RJie
Copy link

RJie commented Jul 8, 2024

看到features里面有支持lua的多线程gc,但是好像没有找到相关的代码或者开关,请问该feature应该如何使用?感谢!

@zjhongxian
Copy link
Collaborator

这个暂时没有了,不过readme没有更新。。

@RJie
Copy link
Author

RJie commented Jul 8, 2024

这个暂时没有了,不过readme没有更新。。

想问下,移除这个feature是因为功能不完善,还是出于别的原因?例如代码保密的原因。觉得这块还是挺有用的。

@zjhongxian
Copy link
Collaborator

因为是发现GC的代码(onEngineGC),是在主线程跑的,会导致卡顿所以移除了。推荐使用
slua.setGCParam(每帧gc的秒数,每帧分步gc的步数限制,gc周期)
这个API。

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