2 ms·
That's not quite true, there's this project, that already has the boilerplate written for you: https://github.com/BlazorExtensions/Canvas https://github.com/Bl
by torginus 6y ago
That's not quite true, there's this project, that already has the boilerplate written for you:
https://github.com/BlazorExtensions/Canvas https://github.com/BlazorExtensions/Canvas
It supports both Canvas2D and WebGL. The API supports batching calls across the interop barrier, so that the interop performance costs are minimized.
As for Blazor being slow: please correct me if I'm wrong, but my understanding, that Blazor code is interpreted, because JIT compilation in wasm is not really possible. The implementation of AoT compilation, which will fix the perf issues is coming along, but it's not quite there yet.