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

Miscellaneous cleanup #1

Merged
merged 5 commits into from
Jun 5, 2018
Merged

Miscellaneous cleanup #1

merged 5 commits into from
Jun 5, 2018

Conversation

mqp
Copy link
Collaborator

@mqp mqp commented Jun 4, 2018

Should be no functionality changes, but I didn't test it :-)

I didn't worry very much about correctness -- I figure if we ever get the sender clock sent over the network, that's the time to think about revisiting this and trying to do a better job, if ever.

Like we figured in person, we can probably get some easy efficiency wins by changing the set interface to do everything at once and by doing less defensive copies, but it's probably not a super big deal with order of 10 people in a room. (FYI, you could also optimize the lerping part -- calling lerpVectors each time does duplicate work if you're going to repeatedly call it with the same origin and target and different alpha.) Once we deploy this we should check the profiler to see whether it warrants improving.

@mqp mqp requested a review from InfiniteLee June 4, 2018 22:44
@InfiniteLee InfiniteLee merged commit 8a229d4 into master Jun 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants