Figma-Linux / figma-linux

Figma is the first interface design tool based in the browser, making it easier for teams to create software. Join us in https://t.me/figma_linux
GNU General Public License v2.0
2.69k stars 164 forks source link

[Question] How do I Launch figma with Electon flags (for NVIDIA PRIME rendering)? #113

Open talentlessguy opened 4 years ago

talentlessguy commented 4 years ago

I made electron work with NVIDIA PRIME using these flags:

__NV_PRIME_RENDER_OFFLOAD=1 __NV_PRIME_RENDER_OFFLOAD_PROVIDER="NVIDIA-G0" __GLX_VENDOR_LIBRARY_NAME="nvidia" __VK_LAYER_NV_optimus="NVIDIA_only" electron --enable-accelerated-mjpeg-decode --enable-accelerated-video --ignore-gpu-blacklist --enable-native-gpu-memory-buffers --enable-gpu-rasterization 

is there any way to do the same but in figma-linux?

When I try to pass these same flags it falls back to software SwiftShader rendering

ChugunovRoman commented 4 years ago

@talentlessguy the app use GPU by default

mazzz1y commented 4 years ago

@ChugunovRoman by default the application uses integrated GPU on Optimus laptops with dual graphics card

Sometimes users want to render figma on discrete gpu, but it not working

ChugunovRoman commented 4 years ago

@dmirubtsov I have a laptop with Optimus and the app uses discrete GPU. But if in a system uses integrated GPU, then figma-linux will used integrated GPU too.

mazzz1y commented 4 years ago

@ChugunovRoman do you use prime offloading? https://download.nvidia.com/XFree86/Linux-x86_64/435.17/README/primerenderoffload.html