Skip to content

Instantly share code, notes, and snippets.

@mubaidr
Created February 15, 2025 17:29
Show Gist options
  • Save mubaidr/1d3e5bd5d4909aae109c5e8d16637821 to your computer and use it in GitHub Desktop.
Save mubaidr/1d3e5bd5d4909aae109c5e8d16637821 to your computer and use it in GitHub Desktop.
Run vscode with gpu accceleration and vulkan enabled
#!/bin/bash
# Use the dedicated GPU
export DRI_PRIME=1
export MESA_LOADER_DRIVER_OVERRIDE=radeonsi
export vblank_mode=1
export mesa_glthread=true
export AMD_DEBUG=nir
export MESA_NO_ERROR=1
# Run VS Code Insiders with the specified flags
code-insiders \
--enable-features=Vulkan,UseSkiaRenderer,SkiaGraphite,WebNN \
--enable-unsafe-webgpu \
--enable-vulkan \
--use-skia-renderer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment