Re:Rocket – A Rust game running on WASM
by onion2k on Monday December 04, 2017 @10:33AM
(#15844573)
You can do something very similar in plain JS using a sharedArrayBuffer and a webworker. A sharedArrayBuffer is a typed array in an area of shared memory that the worker and the main script can both access. It works really well if it fits your use case. I wrote a 'javascript snow' thing that uses it - https://github.com/onion2k/snowfall
[ Parent
| on HN ]
There are no comments on this comment yet.