2023-10-12 13:59:38 -04:00
|
|
|
#! /bin/bash
|
|
|
|
|
|
|
|
# call the brave browser with some nice flags
|
|
|
|
|
|
|
|
# NOTE, the vulkan ICD is specified to force the intel GPU rather than the
|
|
|
|
# Nvidida gpu (which otherwise would be chosen by default and cause it to
|
|
|
|
# be woken up every time I do anything with video/graphics/cameras/etc)
|
|
|
|
# NOTE use-angle=vulkan is extremely important (for some reason)
|
|
|
|
# NOTE obviously this entails vulkan being installed with the indel drive
|
|
|
|
VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/intel_icd.x86_64.json \
|
|
|
|
/usr/bin/brave \
|
|
|
|
--process-per-site \
|
|
|
|
--disk-cache-dir="/tmp/brave-cache" \
|
|
|
|
--use-angle=vulkan \
|
|
|
|
--enable-gpu-compositing \
|
|
|
|
--enable-gpu-rasterization \
|
|
|
|
--enable-oop-rasterization \
|
2024-03-14 10:12:09 -04:00
|
|
|
--enable-features=VaapiVideoEncoder,WebUIDarkMode,CanvasOopRasterization \
|
2023-10-12 13:59:38 -04:00
|
|
|
--ignore-gpu-blocklist \
|
|
|
|
--enable-zero-copy \
|
|
|
|
--enable-raw-draw \
|
|
|
|
--use-vulkan \
|
|
|
|
--force-dark-mode \
|
|
|
|
"$@"
|