maniart / diffyjs

A dependency-free motion detection library for the browser
MIT License
265 stars 15 forks source link

Spike on WebGL for performance gains #29

Open maniart opened 7 years ago

maniart commented 7 years ago

Spike to see if we can improve performance by delegating diffing math to GPU via libraries like

maniart commented 7 years ago

@yatriks -- for some reason I couldn't assign this to you. but FYI ^

bronzehedwick commented 7 years ago

Maybe even a progressive-enhancement to WebAssembly? Get some C hacking in there? Browser support is pretty good now: http://caniuse.com/#feat=wasm

yatriks commented 7 years ago

Good thought @bronzehedwick. Another promising road for progressive-enhancement to WebAssembly is Rust (which also compiles to wasm I think). This Rust+wasm+webpack guide looks like a promising toolchain.

I should set up something like benchmark.js so we can evaluate these approaches.

maniart commented 7 years ago

@yatriks @bronzehedwick Aaaaah this is getting exciting!

bronzehedwick commented 7 years ago

Oh interesting I didn’t know that rust compiled to wasm yet. If it does that seems like a good bet.

bronzehedwick commented 7 years ago

@yatriks I was following a rust issue about compiling to wasm, which i can't find now, but you're right, it looks like you can compile rust to wasm. Here's another repo with some examples: https://github.com/mrfr0g/rust-webassembly

bronzehedwick commented 6 years ago

Seems like a relevant article to the Rust + WASM subject: https://hacks.mozilla.org/2018/01/oxidizing-source-maps-with-rust-and-webassembly/

behnood-eghbali commented 4 years ago

@maniart this repo might help: https://github.com/mbasso/awesome-wasm

maniart commented 4 years ago

Thank you @behnood-eghbali — i'm gonna give it a try. Been meaning to get into Rust + WASM for quite a while now. 🙏🏼