Skip to content

Commit 70bcfe0

Browse files
committed
feat: integrate system and graphics performance optimizations into bootstrap
1 parent 8bfc3e9 commit 70bcfe0

4 files changed

Lines changed: 20 additions & 0 deletions

File tree

dot_bashrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ export PATH
1515
export EDITOR="micro"
1616
export VISUAL="zed --wait"
1717

18+
# NVIDIA shader disk cache size (10GB) to prevent shader compile stutters
19+
export __GL_SHADER_DISK_CACHE_SIZE=10737418240
20+
1821
# Uncomment the following line if you don't like systemctl's auto-paging feature:
1922
# export SYSTEMD_PAGER=
2023

dot_sysctl.d/99-gaming-performance.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ kernel.split_lock_mitigate=0
1212
# Optimize ZRAM Swapping
1313
vm.swappiness=180
1414
vm.page-cluster=0
15+
vm.watermark_boost_factor=0
1516

1617
# Prevent writeback-induced stuttering during heavy I/O
1718
vm.dirty_background_bytes=268435456

dot_zshrc.tmpl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ export MANPAGER="sh -c 'col -bx | bat -l man -p'"
3939
# Scrollbar behavior: force GTK scrollbars to be always visible (no overlay scrolling)
4040
export GTK_OVERLAY_SCROLLING=0
4141

42+
# NVIDIA shader disk cache size (10GB) to prevent shader compile stutters
43+
export __GL_SHADER_DISK_CACHE_SIZE=10737418240
44+
4245
# PATH
4346
export PATH="$PATH:$HOME/bin"
4447
export PATH="$HOME/.npm-global/bin:$PATH"

run_once_setup_fedora.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -531,6 +531,19 @@ $SUI_SUDO systemctl disable --now quiet-cpu.service 2>/dev/null || true
531531
$SUI_SUDO rm -f /etc/systemd/system/quiet-cpu.service
532532
$SUI_SUDO systemctl daemon-reload
533533

534+
# Disable conflicting performance timers and micro-stutter culprits
535+
$SUI_SUDO systemctl disable --now dnf-makecache.timer 2>/dev/null || true
536+
$SUI_SUDO systemctl disable --now irqbalance 2>/dev/null || true
537+
538+
# Set kernel argument split_lock_detect=off to prevent performance throttling
539+
$SUI_SUDO grubby --update-kernel=ALL --args="split_lock_detect=off" 2>/dev/null || true
540+
541+
# Enable CachyOS Copr repository and install extensible sched-ext schedulers
542+
echo "Configuring sched-ext low-latency CPU scheduler..."
543+
$SUI_SUDO dnf copr enable -y bieszczaders/kernel-cachyos-addons 2>/dev/null || true
544+
$SUI_SUDO dnf install -y scx-scheds scx-tools 2>/dev/null || true
545+
$SUI_SUDO systemctl enable --now scx_loader 2>/dev/null || true
546+
534547
# Yubikey Smartcard Daemon & U2F UX
535548
$SUI_SUDO systemctl enable --now pcscd.socket 2>/dev/null || true
536549

0 commit comments

Comments
 (0)