Created
February 15, 2025 17:29
-
-
Save mubaidr/1d3e5bd5d4909aae109c5e8d16637821 to your computer and use it in GitHub Desktop.
Run vscode with gpu accceleration and vulkan enabled
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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