自动清理插件设置
清理项:
- Browser junk
- Download record
- File system
- Form fill record
- Browser history
- Saved password
- Web sql
系统设置
rm -rf ~/.cache/thorium/
mkdir -p ~/.cache/thorium
#修改 fstab 并添添加 tmpfs
sudo vi/nano /etc/fstab
tmpfs /home/你的用户名/.cache/thorium tmpfs noatime,nodev,nosuid,size=2G 0 0
#挂载
sudo mount -a
sudo systemctl daemon-reload
#测试
df -h | grep thorium
thormium-flags.config
# --- [1] 存储与内存:将缓存锁死在 RAM (tmpfs) ---
--disk-cache-dir="/home/zkx/.cache/thorium"
--disk-cache-size=1073741824
--force-gpu-mem-available-mb=2048
# --- [2] 渲染核心:Vulkan + Skia Graphite ---
--skia-graphite-backend=vulkan
--ignore-gpu-blocklist
--gpu-no-context-lost
--enable-gpu-rasterization
--enable-native-gpu-memory-buffers
--enable-zero-copy
--gpu-rasterization-msaa-sample-count=4
--webgl-msaa-sample-count=4
# --- [3] 交互与平滑度 ---
--enable-smooth-scrolling
--font-src-local-matching=0
--enable-unsafe-webgpu
# --- [4] 核心特性开关 (Features) ---
--enable-features=DelegatedCompositing,DirectLayerCompositing,BackForwardCache,EnableDrDc,ParallelDownloading,SkiaGraphite,VaapiOnNvidiaGPUs,Vulkan,ZeroCopyRBPPartialRasterWithGpuCompositor,WebContentsForceDark:inversion_method/cielab_based/image_behavior/none/foreground_lightness_threshold/150/background_lightness_threshold/205
.desktop 文件
Exec=bash -c 'thorium-browser $(grep -v "^#" ~/.config/thorium-flags.conf | tr "\n" " ") %U'