Famo.us - 自定义 .render() 和 .commit() - 它会影响 60fps 和 cpu 性能吗?
Famo.us - Customizing .render() & .commit() - Will it affect 60fps and cpu performance?
我正在使用 Famo.us 并进入为我正在创建的一些对象自定义渲染和提交功能的阶段。
由于 Famo.us 基本上是一个游戏引擎并且以每秒 60 帧的速度运行,在影响 60 帧之前,可以在渲染和提交函数中放置多少代码和 'parsed'每秒?
谢谢。
马克
在混合模式 this has been an issue 之前 Famo.us。
Mixed Mode version
新版本将解决这个问题和其他影响性能的问题。在这个新版本中将完全重写引擎。
注:截至本题发布之日,混合模式还没有发布到public。混合模式将允许渲染到 WebGL 和 DOM。当前版本只有 DOM。
通过@michaelobriena at Famo.us commented on Dec 11, 2014
We are working on this in mixed mode. This is essentially gutting our
entire core composition & layout layers.
Things that get killed:
Entity Spec Parser
Things that will either change a lot or have its functionality and
purpose moved to other modules:
Context RenderNode Surface render/commit & more
Because this is such a huge overhaul, we need to take the time to
investigate how we can use our changes to improve the API. We are
really trying to codify our patterns and remove the bad habits we
started of subclassing our base classes, overuse of eventing, and
solving every problem through extra state.
我正在使用 Famo.us 并进入为我正在创建的一些对象自定义渲染和提交功能的阶段。
由于 Famo.us 基本上是一个游戏引擎并且以每秒 60 帧的速度运行,在影响 60 帧之前,可以在渲染和提交函数中放置多少代码和 'parsed'每秒?
谢谢。
马克
在混合模式 this has been an issue 之前 Famo.us。
Mixed Mode version
新版本将解决这个问题和其他影响性能的问题。在这个新版本中将完全重写引擎。
注:截至本题发布之日,混合模式还没有发布到public。混合模式将允许渲染到 WebGL 和 DOM。当前版本只有 DOM。
通过@michaelobriena at Famo.us commented on Dec 11, 2014
We are working on this in mixed mode. This is essentially gutting our entire core composition & layout layers.
Things that get killed:
Entity Spec Parser
Things that will either change a lot or have its functionality and purpose moved to other modules:
Context RenderNode Surface render/commit & more
Because this is such a huge overhaul, we need to take the time to investigate how we can use our changes to improve the API. We are really trying to codify our patterns and remove the bad habits we started of subclassing our base classes, overuse of eventing, and solving every problem through extra state.