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

[Unity]/[UE] suggestion 创建jsenv时候增加一些优化参数如:set_max_old_generation_size_in_bytes #1635

Open
mingxxming opened this issue Jan 15, 2024 · 2 comments

Comments

@mingxxming
Copy link
Contributor

nodejs/node#42511

@BlurryLight
Copy link
Contributor

可以在JSEnvImpl的构造函数里自己加参数吧,V8::SetFlagsFromString("--max_semi_space_size=128");
但是这个和node面对的场景差别挺大的,node在服务端上有充足的内存可以用,虚幻在移动端上内存还是有点吃紧的(尤其是iPhone)

@chexiongsheng
Copy link
Collaborator

chexiongsheng commented Jan 19, 2024

UE针对虚拟机实例可以在FJsEnv的构造那传参数--max-old-space-size=2048,表示设置为2G。其它设置或者全局设置可以用@BlurryLight 说的方式设置。

Unity修改Plugin的代码,你搜索下--jitless的,看这个怎么设置就可以了。

V8有什么参数设置可以看它的文档

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

3 participants