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

Add fast RasterIO sampling path for generating heightfields with nearest neighbor #744

Merged
merged 1 commit into from Jun 23, 2016
Merged

Add fast RasterIO sampling path for generating heightfields with nearest neighbor #744

merged 1 commit into from Jun 23, 2016

Conversation

manisandro
Copy link
Contributor

Especially when using compressed TIFF heighmaps, the terrain performance suffers a lot from the many 1-pixel RasterIOs performed in getInterpolatedValue. This pull-request adds a fast path when using nearest neighbor interpolation, which reads the entire tile in one go via RasterIO. On my machine I easily get a factor 8 speedup with this path using a LZW compressed DTM.

@jasonbeverage jasonbeverage merged commit b55ee29 into gwaldron:master Jun 23, 2016
@manisandro manisandro deleted the heightfield_nearest branch June 23, 2016 09:48
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