You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix writeFP/writeFS per-point wasm->JS loop and listener leak
readNFTMarker previously called writeFP/writeFS once per feature point,
and each call added a fresh 'imageEv' listener that was never removed.
N feature points produced N wasm->JS crossings *and* leaked N listeners,
doubling draw work on every subsequent marker load.
Populate nftPoints (FP) and the new nftFsetPoints (FS) vectors on the
returned nftMarker struct, drop the JS-library callbacks, and draw both
sets in a single inline pass after the image is painted.
- ARimageFsetDisplay.cpp: add nftFsetPoints field, populate both vectors,
remove writeFP/writeFS extern declarations and call sites.
- bindings.cpp: expose nftFsetPoints.
- js/jslibrary.js: deleted (no callers left).
- tools/makem.js: drop the --js-library flag.
- src/ARFset.js, js/arfset.api.js: thread nftPoints/nftFsetPoints through
the nftMarker CustomEvent and draw them once via a shared helper that
also releases the embind vector handle.
Closes#18
0 commit comments