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

Improve extruded polygon and wall performance. #2329

Merged
merged 9 commits into from
Dec 17, 2014
Merged

Conversation

bagnell
Copy link
Contributor

@bagnell bagnell commented Dec 17, 2014

This PR only slightly improves the performance. A few percent here and there but not enough to mention numbers. Most of this PR is removing temporary object creation by using scratch variables.

* @param {Number} radius The radius of the circle.
* @returns {Number} The chord length.
*/
CesiumMath.chordLength = function(angle, radius) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Unit tests and developer errors.

Could also go in CHANGES.md, but probably not important enough.

@bagnell
Copy link
Contributor Author

bagnell commented Dec 17, 2014

@pjcozzi This is ready for another look.

@pjcozzi
Copy link
Contributor

pjcozzi commented Dec 17, 2014

Make a note about ideas for the scratch arrays in #2179.

pjcozzi added a commit that referenced this pull request Dec 17, 2014
Improve extruded polygon and wall performance.
@pjcozzi pjcozzi merged commit 297b879 into master Dec 17, 2014
@pjcozzi pjcozzi deleted the geometry-perf branch December 17, 2014 21:22
@pjcozzi pjcozzi mentioned this pull request Dec 17, 2014
30 tasks
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