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

use react performance tools for animation ticks (dev only) #413

Merged
merged 2 commits into from
Aug 4, 2017

Conversation

jameshadfield
Copy link
Member

This adds code which will console log the time spend in different components for one animation frame and cumulative for 10 once the play button is clicked. Resets when the animation resets.

Only loaded on the dev version.

@colinmegill please check you are happy with this code being in master.

@trvrb
Copy link
Member

trvrb commented Aug 3, 2017

@jameshadfield ---

I think this is an excellent addition. However, I'm not sure I agree with this always displaying on map animation when in dev mode. There will be times when we're debugging map etc... and don't want this. Why not just add a simple enableAnimationPerfTesting flag to global.js? I like how this can never be on when NODE_ENV == "production".

@jameshadfield jameshadfield requested review from trvrb and removed request for colinmegill August 3, 2017 16:34
@jameshadfield
Copy link
Member Author

@trvrb think this is good to go now

@trvrb trvrb merged commit 57d191f into master Aug 4, 2017
@trvrb trvrb deleted the tick-timing branch August 4, 2017 01:31
@trvrb
Copy link
Member

trvrb commented Aug 4, 2017

Thanks James!

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.

2 participants