hanayik / niivue

a WebGL2 based NIFTI volume viewer.
https://hanayik.github.io/niivue
BSD 3-Clause "New" or "Revised" License
11 stars 7 forks source link

Render mode can crash iPhone/iPad Safari #83

Closed neurolabusc closed 3 years ago

neurolabusc commented 3 years ago

WebGL2 support is still experimental in Safari. The niivue render mode can crash Safari on iPad and iPhone. However, this issue is not observed on Safari and Safari Technical Preview for the ARM-based M1 Macs. For the moment, I suggest we defer to see if upcoming versions of Safari for iOS resolve this issue. However, we could alter the volume rendering shader to make it more similar to Metal to see if this resolves the issue.

hanayik commented 3 years ago

I have experienced this as well. Only an issue in render mode. It may be nice to just detect OS/device type and disable render mode until it is more robust.

https://stackoverflow.com/questions/9038625/detect-if-device-is-ios