-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NW.js 0.29.0: passing --disable-software-rasterizer appears to disable hardware acceleration #6498
Comments
BTW if you want a minimal repro, you can just try: const canvas = document.createElement("canvas");
const gl = canvas.getContext("webgl");
console.log(gl); // null if not working |
This is reproduced in upstream Chrome browser. Using the switch disables hardware acceleration according to 'chrome://gpu' info page. |
I can't reproduce that with Chrome Canary - running |
Could be. I was testing with Chrome stable 65. |
Will try to cherry pick the upstream fix. btw, this switch might not be used given we supports swiftshader now. It disables swiftshader which lets you use CSS 3D and WebGL even on hardware with incapable GPUs. |
Please try this build as we'll release it soon: https://dl.nwjs.io/live-build/nw29/03-14-2018/4aacedc-733b9b3-24a4d36-f80f428/v0.29.1/ |
@rogerwang - looks like it's working fine now. Thanks! |
Good to know it. Thanks. |
Tested on Windows 10 x64
In Construct we pass --disable-software-rasterizer on the command line to make sure we don't get software rendering. However in NW.js 0.29.0, it appears that passing this flag causes WebGL to become unavailable. If I delete the flag from the command line, I get hardware-accelerated WebGL again. It's strange behavior since despite the name, the flag appears to now also disable hardware acceleration.
This may well be an upstream issue but thought I'd give you a heads up in case it is something to do with NW.js or there are other reports.
Demo: package.zip
This is based on a simple Construct export. It displays the renderer info at the top. If it says canvas2d then WebGL isn't working; if it is, it should say WebGL and include the renderer string.
The text was updated successfully, but these errors were encountered: