3 ms·
I was thinking that svg would get you better browser support, but it turns out it just gets you IE9/10 and Opera Mini. Which might be important for business app
by quickthrower2 7y ago
I was thinking that svg would get you better browser support, but it turns out it just gets you IE9/10 and Opera Mini. Which might be important for business apps, but I guess not for everyone:
https://caniuse.com/#feat=webgl https://caniuse.com/#feat=webgl
https://caniuse.com/#feat=svg https://caniuse.com/#feat=svg
I am interested at where it would be an advantage (if at all) to use SVG over OpenGL on the front end or server?
- Const-me 7y agoI know little about modern web development, but I think WebGL is way more efficient on clients. Even on mobiles, GPUs have much more computing power. They have architecture designed for transforming vertices and computing lightning, very fast and highly parallel. In best case, SVG will take input triangles and submit them to GPU. Very small overhead (slightly more GPU bandwidth because lightning, when it’s that simple, bandwidth is often more expensive than compute). But in worst case, SVGs will rasterize on CPU, very slow in comparison. If you rasterize on the server e.g. send jpeg images to browser, it becomes complicated, and depends on many factors like scene complexity and server hardware. Rasterizing triangles is much cheaper on GPU, but JPEG compressor needs data in system RAM not in VRAM, need to download back, relatively slow. Also on many public clouds virtual GPUs are expensive.