Welcome Guest Search | Active Topics | Sign In | Register

Webview starting to lag at some point Options
adi65
Posted: Wednesday, June 26, 2019 5:58:00 AM
Rank: Newbie
Groups: Member

Joined: 6/26/2019
Posts: 7
Hello community,

I’m currently working with the webbrowser engine and somehow I’m experiencing some webview issues. I have a window that contains a tabconrtol and each tabitem has a webview as child. There is also the main application which has a webview. So at this point when i try to add the fifth tab including the webview to the tabcontrol, the UI of basically all the webviews start to be slower (I have javascript transitions in the webviews). Everything is fine as long as I have 4 webviews. Do you know why this is?
eo_support
Posted: Wednesday, June 26, 2019 8:50:30 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,071
Hi,

We are not aware of any limits on our side that would cause your application to slow down at 4 WebViews. You can try to use our TabbedBrowser sample application to open the same page or other test page to see if you can narrow down and isolate the problem. If after that you still believe the problem is on our side, you can try to create a repro project and send the project to us. Please see here for more information on how to send test project to us:

https://www.essentialobjects.com/forum/test_project.aspx

Thanks!
adi65
Posted: Wednesday, June 26, 2019 3:16:02 PM
Rank: Newbie
Groups: Member

Joined: 6/26/2019
Posts: 7
Hi,

thanks for the fast answer. So I just tested the TabbedBrowser and loaded the exact same pages in the same order into the tabs. 3 - 4 Tabs working fine. When I open a new tab you can see that the animations start to lag. I will try to send you a test project.

EDIT: Is it okay, if I just supply the html files as they are enough in order to reproduce it in your TabbedBrowser?
eo_support
Posted: Wednesday, June 26, 2019 3:26:37 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,071
Yes. You can just send the HTML file in that case.
eo_support
Posted: Sunday, June 30, 2019 5:27:06 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,071
Hi,

We tested your files here and we do not see the problem you described, even if we open more than 10 tabs.

The actual transition is done by the GPU. So you may want to test it on a different system and see if you get different result. You can also run the same test in Google Chrome browser and see if you see the same behavior. We do not have any limits on our side and as far as we know there is no hard limits inside Chromium browser engine either. So most likely the limiting factor is the hardware on your system. Also when you run your test, make sure you have the latest build from our download page.

Thanks!
adi65
Posted: Sunday, June 30, 2019 6:01:04 PM
Rank: Newbie
Groups: Member

Joined: 6/26/2019
Posts: 7
Hi,

hm that's weird. As I already mentioned in the email, I have opened the files in Google Chrome browser and didn't experience such things. Personally I own a GTX 1070 which isn't too bad either. I will run the tests using the newest update. I will keep you updated.

Thanks

EDIT: So actually I could isolate the issue a little bit.

You provide the TabbedBrowser application already compiled and executable. Loaded all the files in the order and you're right. Using this precompiled TabbedBrowser doesn't "produce" any laggs even when loading 10 tabs. But when I use the TabbedBrowser which I compiled myself using the provided source project, the application "produces" laggs. Is there any Visual Studio optimization/setting that I should set up?
eo_support
Posted: Sunday, June 30, 2019 7:13:33 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,071
Hi,

No. There is no difference between the precompiled version and the version you compiled yourself. They are compiled from exactly the same source code. The following area could be the differences:

1. I assume that run the precompiled version without running in under a debugger. If you run your own version under the debugger, then there obviously will be a significant performance difference when it runs under a debugger;
2. When you run the precompiled version directly from the installation folder, it would use eowp.exe instead of rundll32.exe (because eowp.exe already exists in that folder). You can find more information about eowp.exe here:

https://www.essentialobjects.com/doc/common/eowp.aspx

You can achieve the same result with your own version by copying eowp.exe into the same folder as your executable.

Thanks
adi65
Posted: Friday, April 3, 2020 4:03:31 PM
Rank: Newbie
Groups: Member

Joined: 6/26/2019
Posts: 7
Hello support,

previously I was able to fix the issue using your referred link and everything worked smoothly. But I just updated my Essentials Objects Version. I replaced all the dll's in my project and the issue starts again. When opening > 5 tabs it starts lagging.. Having 10 tabs open you can really see the performance issue. So I tried replacing it with the old dll's again without changing ANYTHING on the code and yes, it worked again smoothly. So what I did now is, I tried your TabbedBrowser from the installation directory of the new version and loaded all the tabs the same way I used to load it have a year ago and unfortunately the performance issue is still here. Unfortunately I don't know in what version this issue started to occur since I didn't update since then. Would you also be so kind to send me a download link for the old version since I don't have it on my machine anymore?

Can you evaluate on this issue please? I would really appreciate that!

FYI: old version: 19.2.91.0; the new version: 20.0.81.0

Kind regards,
Adrian
eo_support
Posted: Friday, April 3, 2020 6:19:03 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,071
Hi,

This should have something on your system, not our DLLs. Both version 19 and version 20 are built from Chromium's source code. There shouldn't be such a noticeable performance difference between them. What can make such a huge difference is some kind of application (most likely some security software) on your system that treats them differently. So I would recommend you to check that first.

If you can not find what application on your system that triggered the problem, you can try it on a fresh Windows install with nothing else. That should demonstrate the problem you are seeing. You can then start to put other application on that system and see if you can find out which application is causing the problem for you.

Thanks!
adi65
Posted: Monday, April 6, 2020 11:36:48 AM
Rank: Newbie
Groups: Member

Joined: 6/26/2019
Posts: 7
Dear support,


firstly, thanks for the fast response!

Okay so I tried to investigate a bit more on this thing. I actually had EO.Total 2019 still installed on my notebook. So I just renamed the directory and installed EO.Total 2020 and tested the TabbesBrowser again. Somehow the issue also occurs on my notebook - I can open my html file 7 times in EO.Total 2019 without laggs whereas in EO.Total 2020 you really experience laggs. I doubt that any software is responsible for that. I then tried to monitor both versions using the Taskmanager and indeed EO.Total 2020 consumes ~1200MB memory (RAM) whereas EO.Total 2019 consumes for the same browser tabs ~600MB. If you like we can evaluate on this together. :)

Notebook has 16gb of RAM

Kind regards,
Adrian
eo_support
Posted: Tuesday, April 7, 2020 8:01:41 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,071
Hi,

I am not sure what else we can tell you. If you can send us the HTML file/link that you are using we can test it here again and see what we can find.

Thanks!
adi65
Posted: Tuesday, April 7, 2020 9:38:42 AM
Rank: Newbie
Groups: Member

Joined: 6/26/2019
Posts: 7
Hi,

I've sent you an email with the corresponding HTML files. I hope that your investigation will be successful otherwise I have no idea what to do then. Probably trying a new Windows installation. Therefore it would be great if you could provide me a link to the old version as noted above so that I can see if there is a significant performance difference of both versions.

Your help is very appreciated!!!

Kind regards,
Adrian
eo_support
Posted: Wednesday, April 8, 2020 10:35:54 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,071
Hi,

We have tested your files where and we do not see any noticeable difference regarding performance between 2019 version, 2020 version and the current version of Google Chrome. Here are our findings:

1. CPU usage increases after every new page. On our test system, it increases around 10% after each page. Google Chrome has similar result;
2. Comparing CPU usage between v2019 and v2020, v2020 is in fact slightly lower (0.5 to 1%);
3. Memory usage are similar between v2019 and v2020. However with v2019 Windows task manager may not count the memory usages of all child process together with TabbedBrowser.exe (with v2020, when you expand TabbedBrowser.exe in task manager, you would see all the child process, with v2019, you may not see any). This would create the misperception of v2019 using less memory than v2020. When in fact they are similar. This might be what you have observed;

Our conclusions are:
1. Your page is indeed CPU intensive. So as you open more pages, it will eventually slow down;
2. We do not believe this has anything to do with the DLL --- it has something on your system that treats v2019 and v2020 differently;

Hope this helps.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.