Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

optimize look-controls (object allocations, skip type check) #2944

Merged
merged 1 commit into from
Aug 8, 2017

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