Skip to content

Proposed changes for V5.0

Lindsay Kay edited this page Feb 1, 2016 · 8 revisions

SceneJS V5.0 will contain some API changes that will break backwards compatibility, along with a bunch of optimizations that worked out well for xeoEngine.

Arrays instead of vectors

Use arrays for node attributes such as positions and colors, instead of objects. Eg instead of

{x:1, y:2, z:3}

we would have

[1,2,3]

Tidy up event management

Optimizations

  • Use numeric state IDs within the renderer core for faster state tracking.

Task queue with per-frame budget

  • Asynch tasks, eg. geometry generation, node creation etc, will be pushed as tasks to a global queue which will be pumped on each frame, to try to keep the FPS stable.

Node component changes

  • Node attribute accessors will be properties that fire correspondingly-named change events when updated, similar to xeoEngine component attributes.