phenomen / flc

Foundry Lightweight Client (FLC) is a bloat-free client app for Foundry VTT
https://flc.ruleplaying.com/
33 stars 9 forks source link

Not selecting dedicated GPU on laptop #16

Closed ian612 closed 1 year ago

ian612 commented 1 year ago

I'm using FLC on a laptop, and I've not been able to get the computer to use the dedicated Nvidia GPU in the laptop, it always defaults to the intel integrated graphics chip. This happens regardless of whether I try to force it to use the Nvidia chip with both Nvidia control panel and windows graphics settings.

I'm not sure if there's a way to build the exe such that windows recognizes it automatically as a "graphics heavy" application and uses dedicated graphics by default, but if so that'd be really useful.

Hardware: i7-8550U, 16 GB DDR4 RAM intel UHD Graphics 620 Nvidia MX150 2GB

ian612 commented 1 year ago

As an addendum, if I fully disable the integrated graphics via device manager, foundry gives me a warning when I try and run it with FLC that my browser doesn't support hardware acceleration.

VladGrant commented 1 year ago

I am having the exact same issue. It's almost as if the executable isn't what the setting is bound to.

ian612 commented 1 year ago

Oh interesting, now when I open my task manager (on a different PC), it's showing that there are a bunch of Microsoft Edge Webview2 processes underneath FLC... Maybe I need to force that application to use the GPU. Will try it out when I get home tonight

ian612 commented 1 year ago

Managed to try it out, and it worked!!! If you set both FLC and the Microsoft Edge Webview2 process to use the high performance gpu, it finally starts working correctly.

image

phenomen commented 1 year ago

@ian612 glad it worked!

ian612 commented 1 year ago

Yeah, glad it’s working. If possible, it would be good to put this info in the readme or a help file within the application somewhere.

VladGrant commented 1 year ago

So is this considered resolved? I only ask because this is not the best solution for a couple of reasons. 1) Any program using edge webview will be using the GPU, not just FLC. 2) The folder name seems to be tied to a version, meaning it probably changes.

phenomen commented 1 year ago

So is this considered resolved? I only ask because this is not the best solution for a couple of reasons.

@VladGrant Maybe in the future there will be a way to force GPU but for now there is no such API in Tauri / WebView2.

I will add a checker for WebGL2 availability to the main window that will warn the user and provide steps to activate the dedicated GPU (if it exists).

phenomen commented 1 year ago

Added WebGL2 and GPU checked in the new build image