-
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
linux 64 bits v46.0 and above : webgl2 issues not smooth #7497
Comments
What about the Chromium browser in the same system? |
I just tested on chromium version 83.0.4103.61 on ubuntu 64bits and the 3D acceleration in webgl2 is running smoothly, seems like a problem with nwjs. |
I noticed these annoying short freezes too starting from nw.js 0.46.0 with 83.0.4103.61. |
@DimPaDev the latest nightly is updated: http://dl.nwjs.io/live-build/nw46/20200605-233943/d3f126fff/v0.46.2/ |
@onelsonic could you please provide more information? Like console log, and the content of |
@rogerwang I tested the latest nightly build which now uses chromium 83.0.4103.94 but unfortunately the issue of sudden frame drops persists, I will upload a repo later or video to illustrate it better. Note that this issue started from 0.46.0. However, since 0.45.0 a new error appeared in the console when you launch nw.js (only on linux), I don't know if these are related : THIS :
|
I have frame drops on v0.46.4 as well. Fun fact: if you start profiling your page, it suddenly starts running smoothly. https://cdn.discordapp.com/attachments/737076992498860143/738548186850918530/2020-07-31_12-05-25.mp4 Edit: v0.45.6 works smoothly About my setup: the game is shown in an iframe and has a debugger attached to it, in another iframe. If I start profiling the game's iframe, frame drops disappear. If I start profiling in the root document, I have frame drops, but there are no signs of potential causes in the profiler's result. I mean that this remediation while using a profiler for a game is at least suspicious. |
Here with my 0.45 0.45 logs this:
0.48 logs this under NVIDIA:
and this under integrated graphics:
Hopefully this helps. |
Webgl2.0 3D acceleration is still having an issue on linux for all versions above v0.45.6. |
Could you provide a webgl2 demo page which has issues there? I tried this sample and it works well here without any freezes. btw, I'm trying 0.46.0 under Ubuntu 20.4.1 in VirtualBox in macOS. |
@rogerwang but it does lag This page slowly lags more and more, blocking renderer or layout engine (not sure, but if I resize the window, the page doesn't realign "view source" link at the bottom-right corner.) Any other info we can provide? Maybe it is specific to hardware I'm using X11; @rogerwang do you use X11, too? Or Wayland? (top-right corner -> Setting -> About, and scroll a bit down) |
I'm just going to pop in and say I've also encountered this on the Iris driver recently. Opening devtools and profiling fixes the issue until profiling is stopped (which makes no sense) as does downgrading to the mentioned working version (all versions after have the micro-stutters. ) Adding Comparing My test case is any RPG Maker MV game. Run it using any nw not provided with the game, e.g. one in your |
Are the reports you are comparing from NW.js or the Chrome browser? Thanks. btw, I'm still trying to find a system where I can reproduce this. |
Oh no, I've found a similar issue on Windows on v0.45.6. I will provide additional testing over different versions once I'm finished with my game for a game jam :D |
Hi @rogerwang here are the two reports they are native using a graphic card and from a fresh ubuntu install: There are some discrepancies between chrome and nwjs (last version v0.49.0) and the problem still occurs. chrome report: chrome://gpu nwjs report : ./nw --url=chrome://gpu I hope this helps 👍 @CosmoMyzrailGorynych : if you use the last windows version v0.49.0 you should not see the mouse bug. |
@onelsonic thanks. the report is helpful. From them I guess here is a workaround: is there any difference after adding the command line argument |
tested on v0.48.3 the periodic FPS lags/hiccups remain the same even with the --use-cmd-decoder=passthrough parameter |
This one affects both the ozone and x11 platform on Linux. I didn't notice this before because I wasn't testing any WebGL heavy applications. I'll see if changing flags have any effect. |
This should be fixed in this build: |
@rogerwang Thank you, I confirm this is fixed now using the build you posted! |
As nwjs/nw.js#7497 is now closed, issues with WebGL on Linux are gone
@rogerwang thank you 👍. It's working fine again with the current version on linux, great! Many thanks |
on linux 64 bits,
webGL2.0 is acting crazy on version 46.0 and above
lot of lag and short freeze every 2 other frames.
version below 46.0 are all smooth.
Just run a project with 3D webGL2.0 to see.
The text was updated successfully, but these errors were encountered: