Visual Studios webBrowser Laggy(Agar.io客户端)

问题描述:

嘿,伙计们。我试图为网站agar.io做一个sorta客户端。我已经建立了2015年视觉工作室并制作了一个Windows论坛项目。在这个项目中,我添加了一个webBrowser进入论坛并将网址设置为agar.io.这一切似乎都很好,但游戏的FPS非常低。认为这是Internet Explorer的一个问题我在那里运行agar.io并且它根本没有滞后(我这样做是因为webBrowser工具似乎是基于Internet Explorer)。任何帮助人员?

So hey guys. Im trying to make a sorta client for the website agar.io. I have set up visual studio 2015 and made a windows forum project. In this project i added a "webBrowser" Took to the forum and set the url to agar.io. it all seems fine but the game has very low FPS. Thinking this was a problem with internet explorer i ran agar.io on there and it wasnt laggy at all(I did this because the webBrowser tool seems to be based on internet explorer).Any help guys?

我不确定这是不是问题,但值得一试。

默认情况下,WebBrowserControl设置为模拟Internet Explorer 7。

这可能是游戏滞后的原因,但当然还有许多其他可能的原因。



您可以通过添加应用程序名称来更改此行为注册表条目。

本文介绍了配置Internet Explorer WebBrowser控件的仿真模式 [ ^ ]
I am not sure if this is the problem, but it is worth a try.
By default the WebBrowserControl is set to emulate Internet Explorer 7.
This might be why the game is lagging, but there are of course many other possible reasons too.

You can change this behaviour by adding your application name to a registry entry.
This article describes how Configuring the emulation mode of an Internet Explorer WebBrowser control[^]