My application is running into major WebGL performance issues with Google Chrome on Apple silicon devices, which is fixed by manually setting chrome://flags/#use-angle
to OpenGL.
I would like to use pure Javascript code to read the value of this flag and then prompt users to make this setting change, if it is needed.
I already have Javascript code to test if the browser is Google Chrome, and I have the code I need to test if the device is using Apple silicon architecture. Specifically, I would like to read the value of this specific Chrome flag.
What options are available in 2024 to programmatically — specifically, with pure Javascript — read the value of this flag within the browser?
Note: A past question asks about setting the value of a flag programmatically, which I do not need or want. Another past question relates to using the command-line options to Chrome or Chromium, or parse a text file outside the browser, which is not what I am asking. I am asking about reading the value of the flag programmatically within the browser, using pure Javascript.