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

对比于其他脚本有啥优势 #511

Open
zhnet opened this issue Sep 23, 2022 · 1 comment
Open

对比于其他脚本有啥优势 #511

zhnet opened this issue Sep 23, 2022 · 1 comment

Comments

@zhnet
Copy link

zhnet commented Sep 23, 2022

现在至少有puerts,xlua,c#等多种脚本语音,
其中puerts也说效率比lua高很多,还有函数检测
pubg使用了多少slua,纯业务代码占比多少比例?

@zjhongxian
Copy link
Collaborator

1、lua相比puerts比较灵活小巧,效率两者都差不多(puerts在非iOS平台上可以开jit,有一定速度优势,在iOS上差不多)。内存方面可能lua还占优一些。
2、slua unreal适合新开+有蓝图历史包袱的项目,适应性、灵活性更强些。
3、slua unreal深入服务项目开发,功能性更多的考虑了实际项目的应用,便利性+功能齐全方面更好些。
4、puerts最大的优势是有比较齐备的开发生态,lua需要配合emmylua、luahelper之类的弥补这些方面的劣势。

pubgm大量使用lua开发游戏逻辑,现有lua代码磁盘占用大小以 百兆 计了。暂时看来,结合emmylua之类的类型标注+项目规范等,维护这么庞大lua代码还是可以hold的住。

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