Skip to main content

Crate pointblitz_web

Crate pointblitz_web 

Source
Expand description

PointBlitz browser target (wasm): the same pointblitz-core on a canvas (P2, decisions 0028, 0029).

Browser-only code is compiled for wasm32 alone; the host build keeps the crate checkable. Built with web/build.sh (cargo → wasm32 → wasm-bindgen --target web), loaded by web/.

JS drives the loop: it hands chunks to [Viewer::insert], sets the camera, and calls [Viewer::render] from requestAnimationFrame only when something changed (decision 0027). [Viewer::gpu_done] resolves when the GPU has finished the frames submitted so far — the presented mark (decision 0020).