有没有办法减少Qt Creator产生的X11流量? [英] Is there a way to reduce the amount of X11 traffic produced by Qt Creator?

查看:148
本文介绍了有没有办法减少Qt Creator产生的X11流量?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的团队正在为即将进行的项目评估各种IDE.要求之一是我们希望从本地Windows计算机登录到中央功能强大的Linux服务器(我们以前的项目在Windows下,并且不能更改).

My team is evaluating various IDEs for an upcoming project. One of the requirements is that we wish to log into a central, powerful Linux server from our local Windows computers (our previous project was under Windows and changing it is not an option).

我们的方法是使用XRDP,但我们也在考虑在Windows计算机上本地使用X11服务器.

Our approach is to use XRDP, but we are also looking at using an X11 server locally on our Windows machines.

我们注意到,当我们尝试在远程Linux机器上运行Qt Creator并将其显示在本机上运行的X11服务器上时,界面非常混乱且缓慢.刷新速度太慢,无法使用该工具.当我们运行Eclipse时,我们看不到这个问题,与通过XRDP访问它相比,它最终具有更快的响应速度.

We noticed that when we try to run Qt Creator on the remote Linux machine but have it display on the X11 server running on our local machine, the interface is very choppy and slow. Refreshes are too sluggish to make the tool useful. We do not see this problem when we run Eclipse, which ends up being much more responsive than when we access it via XRDP.

使用Wireshark进行的网络流量分析显示,对于类似的任务(向下滚动一页文字),Qt Creator产生的X11相关网络流量大约是Eclipse的10-100倍.

A network traffic analysis using Wireshark revealed that Qt Creator produces roughly 10-100 times more X11-related network traffic than Eclipse for a similar task (scrolling down a page of text).

问题(最终):有谁知道我们如何配置Qt Creator以产生更少的X11流量,从而提高其响应速度?

The question (finally): Does anyone know how we could configure Qt Creator to produce less X11 traffic, thus improving its responsiveness?

底层Linux系统是Kubuntu(带有KDE的Ubuntu).

The underlying Linux system is Kubuntu (Ubuntu with KDE).

Qt Creator版本:3.0.0(使用Qt 4.8.1)

Qt Creator version: 3.0.0 (uses Qt 4.8.1)

P.S .:这是我关于Stack Overflow的第一篇文章,对于如何提高问题的实用性,我也持开放态度.

P.S.: This is my first post on Stack Overflow, and I am open to suggestions on how to improve the usefulness of my question.

推荐答案

尝试使用-graphicssystem native参数启动QtCreator.

Try to launch QtCreator with -graphicssystem native parameter.

Qt4(.5+)支持三种图形后端(本机,栅格和opengl).本机似乎适合于SSH X转发使用,而其他则似乎更适合本地使用.

Three graphics backends are supported in Qt4(.5+) (native, raster and opengl). Native appears to be adapted for SSH X-forward use whereas others appears better for local use.

当我使用Qt4时,它适用于QtCreator 2.5.0版,但由于

It worked for me with QtCreator version 2.5.0 when I was working on Qt4, but it does not work after my fresh update to QtCreator 3.1.2 since Qt5 appears to have deleted this parameter.

我不知道QtCreator 3.0.0是否支持此参数,但是由于您使用的是Qt4,因此您始终可以将QtCreator版本降级为支持该参数的最新版本. 如果要根据远程/本地使用情况自动更改图形系统,则可能要尝试在bashrc中有条件地设置QT_GRAPHICSSYSTEM=native envvar.

I do not know if this parameter is supported in QtCreator 3.0.0 but since you use Qt4 you can always downgrade your QtCreator version to the latest one which supports this parameter. If you want to automatically change graphicssystem depending on remote/local use, you may want to try setting QT_GRAPHICSSYSTEM=native envvar conditionally in your bashrc or so.

这篇关于有没有办法减少Qt Creator产生的X11流量?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆