3 ms·
This crashes my Safari browser on iOS.
by mbil 2y ago
This crashes my Safari browser on iOS.
- theoretically23 2y agoYes, best in Chrome I'm afraid
- tsumnia 2y agoFirefox ran it, but very broken.
- deleted 2y ago[deleted]
- wkat4242 2y agoWeird, for me it worked great on mobile Firefox
- yazzku 2y ago"Works" on Firefox if you can stomach 300-400ms pauses every 2 seconds. Edit: I just profiled it and it spends 42% of exclusive time in texImage2D. It would be better to allocate a set of textures up front and then use glTexSubImage2D to update their contents. glTexImage2D allocates a new texture every time.
- theoretically23 2y agoThanks - should be better now hopefully on Firefox
- DaiPlusPlus 2y agoStill very stuttery before crashing in Safari on iOS on my iPad :/
- brookst 2y agoSmooth and stable on iOS DB3 on iPad…
- yazzku 2y agoThis did get rid of that bottleneck and the stutters are slightly better, but it still has some more work to go. https://ibb.co/LgtJHMs https://ibb.co/LgtJHMs You'll want to get rid of glTexImage2D completely except for application startup (allocate a pool of N images up front, then re-use them and update with glTexSubImage2D). And short of being able to optimize the text render, which seems to be awfully stupid, you'll want to render offscreen to those textures ahead of time before you need to render them on-screen.
- yazzku 2y agoTo be fair, you're crazy CPU-bound. This workload is peanuts for a modern GPU and there's no excuse for it not running at 500+ fps. But that's just how JS goes. You'd probably have better luck with C/wasm for this kind of thing if the web is your target.
- consumer451 2y agoFor reference, while it does work much better on my old laptop now, on iOS 18.0.1 iPhone 11 Pro Max, it also crashes until I add https://firehose3d.theo.io/?discardFrac=0.6 https://firehose3d.theo.io/?discardFrac=0.6
- Angostura 2y agoIt’s seems to work fir me ok on 18.1
- matsemann 2y agoAccording to the title, perhaps try IE6 on XP ;)
- mensetmanusman 2y agoLasts 5 seconds on iPhone 16 pro max