p5.glitch
p5.glitch copied to clipboard
preventing crashes in webgl mode
Hi, I'd doing some experiments using p5.glitch as a texture on a webgl 3d primitive but am getting pretty consistent crashing. I tried reducing load quality thinking that would prevent the crashes but didn't see much change in results. Do you have any suggestions?
Hmm what OS + browser are you using? Just tested your example with Chrome (and Firefox) on MacOS and no problems.
One gotcha, be sure to manually load in the latest release from github – since there was one bug in randomByte() – but you're not using that function. (I lost access to my NPM account to update it there...)
Yes, I'm running latest p5.glitch <script src="https://cdn.jsdelivr.net/npm/p5.glitch@latest/p5.glitch.js"></script>.
On my laptop I'm running Linux. With Firefox 135.0.1 it crashes for me every time. With Chromium it does not crash. On iOS it crashes for me on both Safari and Firefox.