-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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 approximateTerrainHeights file for quicker page loads (Solves #6557) #7959
Optimize approximateTerrainHeights file for quicker page loads (Solves #6557) #7959
Conversation
Thank you so much for the pull request @tinco! I noticed this is your first pull request and I wanted to say welcome to the Cesium community! The Pull Request Guidelines is a handy reference for making sure your PR gets accepted quickly, so make sure to skim that.
Reviewers, don't forget to make sure that:
|
I forgot to run the test suite, it actually tests some values with EPSILON10 which is a bit strict, but I updated the values. Now one integration test fails that seems like I really did break something. I'm not sure what I should do to figure out what's wrong. |
I tried increasing the resolution to 10cm instead of 1m, but it didn't fix it. Maybe someone could explain to me what this integration test does and we can figure it out from there. |
Eh.. ok so apparently it only fails on my machine? Forget I said anything ;) |
Thanks for doing this much needed cleanup @tinco ! We're in the middle of updating our CLA process - I'll get that sorted out in the next few days and then take a look at this. |
Thanks for submitting a CLA @tinco ! You are officially the first person to sign using the new system 🎉 I'll try to get this reviewed sometime next week. |
Thanks again @tinco ! A few thoughts:
Otherwise, this looks like a pretty straightforward change that shaves off a good ~300 kb. @mramato when you get a chance, sometime before the next release, can you take a second look here? The extra dependency is only a dev dependency so I think it should be OK here. |
Thanks, applied all the changes you suggested :) hadn't seen the |
Thanks again for your contribution @tinco! No one has commented on this pull request in 30 days. Maintainers, can you review, merge or close to keep things tidy? I'm going to re-bump this in 30 days. If you'd like me to stop, just comment with |
Works great @tinco, thanks! I executed your script to change |
This solves #6557, it rounds the numbers in
approximateTerrainHeights.json
, I also added a script that performs this rounding in the Gulpfile, and left the original inapproximateTerrainHeightsPrecise.json
so if it ever needs updating or some other resolution that would be a simple change to the script.