Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(WebGL): remove support for WebGL1 #2212

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

martinken
Copy link
Member

@martinken martinken commented Jan 6, 2022

Now that safari supports webgl2 move to that as the webg1 code
and conditionals added a lot of complexity and limited what
we could do.

Now that WebGL2 is fairly universal this change should not
break anything other than iOS devices still running iOS 14
or earlier.

There is a second step (not in this MR) which is to update vtk.js
to assume that we have depth textures. This will remove the need
for the opaque depth pass code and some other sections of code
but to keep this MR reasonably small it is being left out.

Now that safari supports webgl2 move to that as the webg1 code
and conditionals added a lot of complexity and limited what
we could do.

Now that WebGL2 is fairly universal this change should not
break anything other than iOS devices still running iOS 14
or earlier.

There is a second step (not in this MR) which is to update vtk.js
to assume that we have depth textures. This will remove the need
for the opaque depth pass code and some other sections of code
but to keep this MR reasonably small it is being left out.
@martinken
Copy link
Member Author

Going to let this sit for a bit as I'm not sure how much iOS 14 is still out there in the wild right now.

@floryst
Copy link
Collaborator

floryst commented Jan 6, 2022

Here are Mixpanel's iOS 14 and 15 usage stats: https://mixpanel.com/trends/#report/ios_15

@jourdain
Copy link
Collaborator

jourdain commented Jan 6, 2022

We should still ask the community once we are getting closer to the time where we want to merge that. As I'm worried that some of the usage of vtk.js would be in hospitals on iOS devices... On the other hand, they could still use older version of vtk.js to keep things working...

@floryst floryst added this to In progress in vtk.js roadmap Jun 21, 2022
@daker
Copy link
Collaborator

daker commented Jan 5, 2024

iOS 17 is released and iOS 14 market share is less than 0.05% https://telemetrydeck.com/blog/ios-market-share-13-23/

@daker
Copy link
Collaborator

daker commented Feb 26, 2024

Three.js will remove support for WebGL1 in r163 which is due in March or April 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
vtk.js roadmap
In progress
Development

Successfully merging this pull request may close these issues.

None yet

4 participants