Skip to content

Conversation

@ngokevin
Copy link
Member

@ngokevin ngokevin commented Aug 8, 2017

Description:

Save two object allocations per tick (for each position and rotation). Reuse the same object for setting such that the component will skip type checking.

Changes proposed:

  • Reuse position and rotation objects for updating their components.
  • Move a getAttribute call down past early returns so it doesn't have to get called (and dereference) in some cases.

@dmarcos dmarcos merged commit 22fda9e into aframevr:master Aug 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants