figma-linux icon indicating copy to clipboard operation
figma-linux copied to clipboard

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

Open talentlessguy opened this issue 4 years ago • 4 comments

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

talentlessguy avatar Jun 22 '20 10:06 talentlessguy

@talentlessguy the app use GPU by default

ChugunovRoman avatar Sep 03 '20 07:09 ChugunovRoman

@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

mazzz1y avatar Sep 07 '20 12:09 mazzz1y

@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.

ChugunovRoman avatar Sep 07 '20 12:09 ChugunovRoman

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

mazzz1y avatar Sep 08 '20 03:09 mazzz1y