Re:Code golfing a tiny demo using maths and a pinch of insanity
by timojaask on Monday September 29, 2025 @08:27PM
(#45420572)
Similar issue on iOS Safari: all examples work except for the very first one.
Re:Code golfing a tiny demo using maths and a pinch of insanity
by sgarland on Tuesday September 30, 2025 @08:19AM
(#45424531)
It loaded fine for me. iOS 26.0, iPhone 16 Pro.
Re:Code golfing a tiny demo using maths and a pinch of insanity
by greggman65 on Tuesday September 30, 2025 @03:06AM
(#45422732)
If you just want it to work, stick this script on your page
https://github.com/greggman/virtual-webgl
If you want to make your own solution there's one listed here about 1/2 way down the page
https://webglfundamentals.org/webgl/lessons/webgl-multiple-v...
As an aside, WebGPU doesn't have this issue or at least has it less. For one, WebGPU can use a single device to render to multiple canvases, something WebGL can't. Another is that WebGPU is mostly stateless making it easier for both the user and the browser.
The code on the blog is pretty simple and naive (I'm not a webdev): https://github.com/ubitux/scripts/blob/main/share/blog/shade...
Any suggestion on how to address the issue is welcome.
Note: I don't have any Windows machine to test with