away3d/away3d-core-fp11 — Issue #232: Object3D.updateTransform()
Author: manifreaky
Created: 2012-03-01 21:40:59+00:00
State: open

the following line in the updateTransform method of Object3D is creating a new instance of Vector. each time.

```javascript
_transform.recompose(Vector.([_pos, _rot, _sca]));
```

possible optimization:

```javascript
private var _transformVector:Vector. = new Vector.(3);
...
...
_transformVector[0] = _pos;
_transformVector[1] = _rot;
_transformVector[2] = _sca;

_transform.recompose(_transformVector);
....

```

works in my local branch