# Google Chrome

Install Google Chrome from AUR:

~~~bash
yay -S google-chrome
~~~

## Tweaks
To enable hardware accelerated video decoding (with open source drivers) create a file at `~/.config/chrome-flags.conf` and add the following line in it:

~~~
--enable-features=VaapiVideoDecoder
~~~

Additionally, if you need to be able to share your screen wie WebRTC, you need to add the following line as well:

~~~
--enable-usermedia-screen-capturing
~~~

Furthermore, visit [chrome://flags](chrome://flags) and set the following options to further tweak performance (use the search field to filter):

| Setting key                        | Value     | Description                                                            |
|------------------------------------|-----------|------------------------------------------------------------------------|
| `#enable-webrtc-pipewire-capturer` | `Enabled` | Uses PipeWire to capture the screen in Wayland sessions                |
| `#enable-gpu-rasterization`        | `Enabled` | Uses GPU for rasterization, boosting performance                       |
| `#enable-zero-copy`                | `Enabled` | Accesses GPU memory directly, boosting performance                     |
| `#ozone-platform-hint`             | `Auto`    | Auto-detects which windowing system is currently in use (X11, Wayland) |