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

build: disable Vulkan support by default #17694

Closed
wants to merge 1 commit into from
Closed

Conversation

alexeykuzmin
Copy link
Contributor

@alexeykuzmin alexeykuzmin commented Apr 4, 2019

Maybe it shouldn't be done in the master but only in v4 and 5.

Description of Change

It was enabled in
https://chromium.googlesource.com/chromium/src.git/+/327326656f2c8c45ecb0ff4675e5c577e7c275ef which landed in 69.0.3460.0 (Electron 4).

Vulkan support would require a command line parameter "--enable-vulkan"
to be passes to a binary to be enabled anyway,
so this change doesn't actually alter the current behaviour of Electron.

Reasons to disable the flag back:

  1. Electron has never supported it prior to version 4.
  2. We build stuff we don't need.
  3. We ship stuff we don't use, and Vulkan's DLLs size is > 0.

Checklist

Release Notes

Notes: Disabled unintentionally enabled Vulkan support.

Is was enabled in
https://chromium.googlesource.com/chromium/src.git/+/327326656f2c8c45ecb0ff4675e5c577e7c275ef
which landed in 69.0.3460.0

Vulkan support would require a command line parameter "--enable-vulkan"
to be passes to a binary to be enabled anyway,
so this change doesn't actual alter the current behaviour of Electron.
@nornagon
Copy link
Member

nornagon commented Apr 5, 2019

I wouldn't say this was unintentionally enabled. We inherit changes in Chrome intentionally.

Vulkan will eventually be required in Chrome (to support WebGPU, and additionally because OpenGL is deprecated on macOS), so we can't disable this forever. Disabling it in 4 and 5 might be reasonable if it's not usable/useful there anyway. What's the difference in binary size? If it's less than ~1MiB I don't think we should bother, since it will be required eventually anyway.

@miniak
Copy link
Contributor

miniak commented Apr 10, 2019

@nornagon on 64-bit Windows builds, the Vulkan binaries are 12 MB uncompressed (approx 2.5 MB compressed). Shipping this much dead code seems really wasteful.

@miniak
Copy link
Contributor

miniak commented Apr 15, 2019

@nornagon even the latest version of Chrome on Windows does not include these Vulkan DLLs.

@alexeykuzmin
Copy link
Contributor Author

alexeykuzmin commented Apr 15, 2019

I wouldn't say this was unintentionally enabled. We inherit changes in Chrome intentionally.

The thing is enabled by default in Chromium, but I'm not sure about Chrome.
Milan states above that there are no Vulcan DLLs present in the latest GC on Windows.

@alexeykuzmin
Copy link
Contributor Author

Disabling it in 4 and 5 might be reasonable if it's not usable/useful there anyway.

5-0-x #17788
4-1-x #17789

@alexeykuzmin
Copy link
Contributor Author

alexeykuzmin commented Apr 16, 2019

We are going to leave it as is in the master and only make the change in 4-1-x and 5-0-x.

@alexeykuzmin alexeykuzmin deleted the disable-vulkan branch April 16, 2019 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants