Skip to content

Viewshed reconstruction for Rust and WASM - #69

Merged
tombh merged 2 commits into
tombh/adjacent-polar-viewshed-builderfrom
tombh/wasm-viewshed-reconstructor
Jul 19, 2026
Merged

Viewshed reconstruction for Rust and WASM#69
tombh merged 2 commits into
tombh/adjacent-polar-viewshed-builderfrom
tombh/wasm-viewshed-reconstructor

Conversation

@tombh

@tombh tombh commented Jul 8, 2026

Copy link
Copy Markdown
Collaborator

Definitely faster for high angle counts. But not quite as fast as I was seeing no the Rust benchmark. Some viewsheds can take over a second to reconstruct.

viewshed_reconstructor.js 11KB
viewshed_reconstructor_bg.wasm 61KB

This prepares for compiling this code to WASM.
@tombh
tombh force-pushed the tombh/wasm-viewshed-reconstructor branch from 4f81460 to d03c8a7 Compare July 8, 2026 08:04
@tombh
tombh requested a review from ryan-berger July 8, 2026 08:08
Successfully used in the browser.
@tombh tombh changed the title refactor: move viewshed reconstruction into crate Viewshed reconstruction for Rust and WASM Jul 11, 2026

@ryan-berger ryan-berger left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM.

Crazy how small these are in WASM. Go WASM!

@tombh
tombh merged commit 698c697 into tombh/adjacent-polar-viewshed-builder Jul 19, 2026
4 checks passed
@tombh
tombh deleted the tombh/wasm-viewshed-reconstructor branch July 19, 2026 01:42
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