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 setUniforms #7969

Merged
merged 2 commits into from
Mar 4, 2019
Merged

Optimize setUniforms #7969

merged 2 commits into from
Mar 4, 2019

Conversation

mourner
Copy link
Member

@mourner mourner commented Feb 28, 2019

Eliminates unnecessary loops and object lookups in a performance-critical method (setUniforms). Measuring this with DevTools profiler, the method seems to get 2.5x faster — from taking 9.1% of CPU time to 3.7%.

Before:
image

After:
image

However, the Paint benchmark doesn't show this improvement — once again implying that it's not representative of real world performance (which needs to be investigated separately).

image

Launch Checklist

  • briefly describe the changes in this PR
  • write tests for all new functionality
  • document any changes to public APIs
  • post benchmark scores
  • manually test the debug page

@mourner
Copy link
Member Author

mourner commented Feb 28, 2019

Surprisingly fails one render test (regressions #5978) — investigating.

@mourner mourner requested a review from ansis February 28, 2019 17:28
Copy link
Contributor

@ansis ansis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@mourner mourner merged commit d85afad into master Mar 4, 2019
@mourner mourner deleted the optimize-set-uniforms branch March 4, 2019 17:26
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