Open in0finite opened 10 months ago
Yep, wasm support is quite cool 😎
I guess "live" parsing should be simple to add. Probably a repetitive JS timer which advances demo for 17 ms.
Or you can even go step further and run the parser in Web Worker (ie. a background thread in Web) 😄
Will see tomorrow if I have time to add it.
It's done.
I constrained it to 20 FPS, because 60 FPS increases processing time a lot. I don't know why, probably Task.Delay()
has some overhead, or it's not precise to 1 ms level.
Just want to say this is great - I had no idea that C# WASM was so simple.
Rather than using the ReadAllAsync method, instead can you change to StartParsing/MoveNext and yield to the web UI every 17ms or so? That way the tab won't freeze up as it's parsing, and you get results live.
Many thanks