Comments (6)
有些系统应用是没有权限jit的,比如ios。
wasm没有jit的情况,快不了多少,js调用c++肯定比调用wasm好。
我所知道一个act游戏用了puerts,战斗部分都用了ts,整体代码70%的占比,没什么性能问题,甚至关了jit,帧率也没降低。我觉得关键在于设计,设计不好会慢(另外一个反面是一个lua项目,在lua那算碰撞)。
from puerts.
wasm是v8内置的支持,按v8使用文档使用即可
from puerts.
Puerts 的 JIT 是可以使用的么,我们现在大部分业务逻辑都是 js 写的,想降低下 Game 线程的执行时间,目前其他优化点不多了,想从脚本层入手去做一些优化,不知道您这边有什么推荐的方案么?我看了下 wasm,对于虚幻引擎宿主来讲,是不是 js 直接调用 C++ 比 wasm 会更好些?您这边有什么相关的基于 Puerts 的脚本层加速方案可以参考么?
from puerts.
现在 Puerts 中的 V8 是不是默认开启 JIT 的呀
from puerts.
我在 JsEnvImpl 中看到这这块代码,这个 WITH_V8_FAST_CALL 如果开启的话是不是函数调用的性能也会更高呢
#if PLATFORM_IOS
char Flags[] = "--jitless --no-expose-wasm";
v8::V8::SetFlagsFromString(Flags, sizeof(Flags));
#endif
#ifdef WITH_V8_FAST_CALL
char FCFlags[] = "--turbo-fast-api-calls";
v8::V8::SetFlagsFromString(FCFlags, sizeof(FCFlags));
#endif
from puerts.
这个是主要优化 C++ 到 JavaScript 的 API 调用么
from puerts.
Related Issues (20)
- [UE] Bug: TS定义一个的property组件找不到SetAnimClass()函数 HOT 5
- [UE] Bug: 生成的ue.d.ts会漏掉/Engine下的蓝图类
- [Unity] Bug: 发布微信小程序报错JsEnv has been disposed HOT 1
- [Unity]字符串中间含\0传递到js会被截断 HOT 3
- global object in javascrript HOT 7
- [Unity] Bug: 仅 editor crash HOT 2
- [UE] Bug: RegisterTArray报错及使用问题,及模板绑定相关问题 HOT 7
- [Unity] 仿照unreal使用v8::StackTrace::CurrentStackTrace获取js堆栈,但返回GetFrameCount总是0 HOT 2
- [Unity] Bug: Fields with internal type exposed via explicit interface is always undefined HOT 3
- [Unity] Bug: 运行puerts的nodejs http示例,localhost访问不到 HOT 6
- [Unity]TS端向CS端注册带参(非string)回调报错 HOT 1
- [Unity]quickjs后端js throw null会导致崩溃
- [Unity] 如何安装? HOT 4
- [Unity]quickjs版本支持throw undefined HOT 1
- [UE] Bug: UE5安卓打包中出现libnode.so缺失及SSL库的问题 HOT 7
- [Unity] Bug: $Ref<T>类型中多了value字段声明
- [Unity] Cannot find module HOT 3
- Godot C# GD class convert HOT 1
- [Unity]/[UE] suggestion Unity打包到小游戏过程中,怎么处理能改动到library.js脚本 HOT 1
- [UE] Bug: 使用继承引擎类的方式,ReceiveBeginPlay 获取不到初始化jsenv的数据。 HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from puerts.