VTKJS is so slow on MAC

When VTKJS renders a large grid, it is stuck on a specific MAC, and Threejs can be rendered smoothly. (1) Under the mac, Firefox and Safair can be rendered smoothly; (2) Chrome can also be rendered smoothly when the user-anonle = metal is opened.
How can I automatically adapt to mac’s metal rendering engine like threejs?