by kbumsik · 6y ago · 0 comments
It works on iPhone and Windows desktop but does not work on iPad Pro 11, not on Galaxy S10, not on some Linux desktops. So, it is inconsistent even within the same iOS ecosystem.
Some might say the OP misconfigured or I need to go about:config, but these kinds of thing should be trivial for developers/users.
Even Flash used to work out of the box across platforms. Why things going backwards?
Second, "GPU-enabled JavaScript" has already taken off. Ever used Google Maps or Google Earth - both use WebGL heavily? Or maybe you read the NYTimes who occasionally produce pages with a heavy WebGL focus[1].
[1] https://www.nytimes.com/interactive/2015/01/09/sports/the-da...
The biggest problem with the WebGL compatibility issue is that it is unpredictable. We don't know which devices work until we open the page. Maybe I am expecting too much, but this degree of inconsistency shouldn't happen to hobby projects neither.
If you restrict yourself to the basic parts of WebGL 1 your app will work almost everywhere, as compatibility is excellent on all recent phones and OSes.
There’s a lot of nice stuff in WebGL 2 (eg float textures, vertex textures) but as soon as you try to use it you either sacrifice compatibility on a bunch of devices, or you have to check for various extensions to try to figure out what’s going to work, and try to fall back gracefully if possible.
Are you claiming that there's less effort in coding up a native graphics program that works across all platforms?
Certainly native has the edge on performance (WebGPU will shorten the gap a bit), but on ease of multi-device compatability? I could be convinced, but it seems hard to believe. The whole idea of the browser (these days) is to make cross-platform stuff easier to develop.
2. Flash is relatively high-level API when it comes to graphics. Shaders are low level and while they should work everywhere, I guess, one could still run into compatibility issues between different video adapters.
The main point OP is pointing out is the inconsistency of WebGL. Even if he didn't make a point about Flash, the central message would be unaffected.
I guess you found the reason.
That said, cross platform compatibility is always going to be hard. I'm still amazed that Adobe let that platform die. It has taken so long and so much effort to recover equivalent functionality, and in some cases we are still lagging what Flash could do.
Seems to be working great on my Galaxy S9. What isn't supposed to work?
I am not saying it's not supposed to work. It's my Galaxy S10 with Chrome that doesn't work.
Your comment shows the problem I am pointing out: we don't know even which devices isn't supposed to work, it's almost random.
Edit: Actually, I remembered now there are two versions of the S10, the Snapdragon and the Exynos variants. I have the Snapdragon one, might be a difference.
I'm not sure if desktop graphics are any better. It's a reason why a lot of people choose consoles, no chance of incompatibility. But even then you have ports and games that are poorly made!
When any WebGL page was opened in Firefox, it crashed the X server.
You didn't even get a blank page, and of course lost whatever you were working on at the time.
Apple decided that Flash is not the future when they launched iphone/iOS.