Skip to content

Instantly share code, notes, and snippets.

@dougg0k
Last active January 4, 2026 14:37
Show Gist options
  • Select an option

  • Save dougg0k/2c50ef89aec97f779135dc0f7f2c1c9f to your computer and use it in GitHub Desktop.

Select an option

Save dougg0k/2c50ef89aec97f779135dc0f7f2c1c9f to your computer and use it in GitHub Desktop.
VSCode flags - Path ~/.config/code-flags.conf
# Never use more than one --enable-features and --disable-features as it can overwrite the previous.
# This was built using Arch Linux (Wayland) if some flags / features are not compatible with other OS, up to whoever uses, to remove them.
# There are two threads that if ever get implemented into vscode, could bring improvements to the usage experience.
# https://github.com/microsoft/vscode/issues/27378
# https://github.com/microsoft/vscode/issues/221145
# CPU
--enable-features=RawDraw,HighEfficiencyModeAvailable,WebRTCPipeWireCapturer,FractionalScaleV1,WaylandPerSurfaceScale,NetworkServiceSandbox,FontAccess
--disable-features=CalculateNativeWinOcclusion,BackForwardCache,NetworkServiceInProcess,VizDisplayCompositor,UseSkiaRenderer
--disable-gpu
--disable-gpu-compositing
--disable-gpu-rasterization
--enable-begin-frame-scheduling
# GPU
# There are some slowdowns currently, since WebGPU are not yet fully implemented into vscode.
# There are bugs still, that may be affected by various flags.
# When selecting text, it seemed somewhat sluggish, not responsive.
# WaylandWindowDecorations cause slowdown, SkiaGraphite break webgpu, RawDraw cause UI to break on 1.98
#
# --enable-features=Vulkan,UseClientGmbInterface,DirectRenderingDisplayCompositor,VizDisplayCompositor,CanvasOopRasterization,UseGpuSchedulerDfs,UseSkiaRenderer,HighEfficiencyModeAvailable,EarlyHintsPreloadForNavigation,WebRTCPipeWireCapturer,UiGpuRasterization,EarlyEstablishGpuChannel,EstablishGpuChannelAsync
# --disable-features=WaylandWindowDecorations,SkiaGraphite,DefaultANGLEVulkan,VulkanFromANGLE,RawDraw
# --enable-unsafe-webgpu
# --use-vulkan=native
# --enable-gpu-rasterization
# --enable-oop-rasterization
# --canvas-oop-rasterization
# --enable-drdc
# --enable-native-gpu-memory-buffers
# --ui-enable-zero-copy
# --enable-accelerated-2d-canvas
# --use-skia-renderer
# --enable-use-gpu-scheduler-dfs
# --enable-accelerated-compositing
# --enable-gpu-async-worker-context
# --new-canvas-2d-api
# --disable-gpu-vsync
# --enable-gpu-memory-buffer-video-frames
# --ui-enable-shared-image-cache-for-gpu
# --use-client-gmb-interface
# --max-gum-fps=500
# --enable-viz-display-compositor
# --disable-image-animation-resync
# --force_high_performance_gpu
# --enable-gpu-early-init
# --disable-webgl
# --enable-gpu-compositing
# --enable-hardware-overlays
# --enable-zero-copy
# --enable-threaded-compositing
# --disable-software-rasterizer
# Style
--force-device-scale-factor=1
--force-color-profile=srgb
--disable-font-subpixel-positioning
--disable-lcd-text
--enable-use-zoom-for-dsf
--disable-renderer-accessibility
--high-dpi-support=1
--enable-font-antialiasing
# Others
# --password-store=gnome-libsecret
--gtk-version=4
--wm-window-animations-disabled
--animation-duration-scale=0.0
--cc-scroll-animation-duration-in-seconds=0.0
--disable-login-animations
--disable-modal-animations
--disable-wayland-ime
--enable-raw-draw
--main-thread-compositing-priority
--disable-smooth-scrolling
--high-efficiency-mode-available
--allow-pre-commit-input
--enable-threaded-texture-mailboxes
--enable-threaded-animation
--enable-threaded-scrolling
--scheduler-configuration
--disable-renderer-backgrounding
--back-forward-cache=force-caching-all-pages
--enable-waitable-swap-chain=1
--num-raster-threads=8
--disable-input-event-activation-protection
--no-first-run
--no-default-browser-check
--disable-component-update
--enable-sandbox
--disable-background-networking
--disable-component-extensions-with-background-pages
--disable-threaded-scrolling
--disable-accelerated-video-decode
--disable-accelerated-2d-canvas
--disable-background-timer-throttling
# Disable list
# --ignore-gpu-blocklist
# --disable-gpu-driver-workarounds
# --disable-gpu-driver-bug-workarounds
# --max-active-webgl-contexts=100 # GL usage only
# --use-gl=egl # Breaks webgpu
# --in-process-gpu # Breaks webgpu
# --enable-skia-graphite # Breaks webgpu or cause slowdown
# --disable-frame-rate-limit # Cause slow down with webgpu
# --disable-vulkan-surface
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment