nw.js
nw.js copied to clipboard
[Feature] Trick to tell AMD and Nvidia drivers to use the most powerful GPU instead of a lower-performance (such as integrated) GPU
Hello. It would be great if we will have options to enable powerful GPU https://gist.github.com/statico/6809850727c708f08458
yup, I need it too
This should be enabled in 0.21.0 rc versions with Chromium 57: https://skia.googlesource.com/skia/+/chrome/m57/tools/gpu/GrContextFactory.cpp#33 https://skia.googlesource.com/skia/+/chrome/m57/BUILD.gn#30
Please try with our latest 0.21.0 nightly build: http://dl.nwjs.io/live-build/02-28-2017/nw21-0a37a7f-6a70483-e6f163e-1c48b0a/v0.21.0/
@rogerwang This build doesn't work. GPU Nvidia Optimus started on integrated driver as usual. And a can't see any export of NvOptimusEnablement in binaries. Could you check it please?
Will do. How did you test it besides checking the symbols?
On Tue, Feb 28, 2017, 6:23 PM Strateg [email protected] wrote:
@rogerwang https://github.com/rogerwang This build doesn't work. GPU Nvidia Optimus started on integrated driver as usual. And a can't see any export of NvOptimusEnablement in binaries. Could you check it please?
— You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/nwjs/nw.js/issues/5732#issuecomment-283001141, or mute the thread https://github.com/notifications/unsubscribe-auth/AAKGGakBuaLkaNWxaKhQH9l5hK6rh2i2ks5rg_WGgaJpZM4MNUmi .
@rogerwang By text search "NvOptimusEnablement" in files. You can check any hardware-accelerated game exe file for that string. This string is always present for trick the drivers.
To complete test you need to have laptop with built-in and nvidia GPU - you should see that by default it launch with built-in GPU, but if the app has this constant - it should launch on nvidia (amd).
I would like to request an update about the current progress of this feature. Is it already available in nightly builds and does it run as intended?
No. It's still not fixed. The code I referred to previously was for skia testing tools. Will keep this issue updated.
How's this option enabled in the latest version?
@rogerwang I would appreciate a quick update for this one. Is it perhaps already implemented but requires to be enabled manually?
We didn't fix it. Will see it soon.
btw, could you please check the status in Chrome? Currently we don't have the hardware to check it.
Hey! This issue is very old and still open. Are there any news about this?
We're creating a game with NW.js and by default, it always uses integrated GPU on Windows (mostly on Laptops)
That just controls the default setting. In the system, a tool (such as Nvidia panel) is used to control which gpu is used by each program.
I found that the --force_high_performance_gpu flag seems to make NW.js run with a discrete graphics card by default, but with the --in-process-gpu flag it will not work.