Java 1.6中Java Swing App中的绘画问题 [英] Problem with Painting in Java Swing App in Java 1.6

查看:76
本文介绍了Java 1.6中Java Swing App中的绘画问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个Swing应用程序(当前在Java 1.6更新11上运行),它有一些间歇性的绘制刷新问题(例如有工件等)。这只发生在我们应用程序的某些用户而不是其他用户。

I'm working on a Swing application (currently running on Java 1.6 update 11) which has some intermittent paint refresh problems (e.g. there are artifacts etc.). This only happens to some users of our application but not others.

在做了一些研究后,我发现设置属性 sun.java2d.d3d false 可能有所帮助,事实上,它对我们的一位用户有帮助。

After doing some research, I found that setting the property sun.java2d.d3d to false may help and in fact, it helped for one of our users.

现在其他一些用户正在抱怨这个问题,我正在考虑为所有用户将该属性设置为 false

Now that some other users are complaining about the issue, I'm thinking of setting the property to false for all users.

我的基本问题如下:

究竟是什么原因造成的?是视频卡吗?是司机吗?这是Sun的错误吗? (例如http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6635462)三者的组合?

What exactly is the cause of this? Is it the video card? Is it the driver? Is it a bug from Sun? (such as http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6635462) Combination of all three?

换句话说,是最好的简单地关闭这个属性还是仅影响某些更新最新驱动程序的视频卡?

In other words, is is best to simply turn this property off or is it affecting only certain video cards in which an update to the latest driver would fix?

推荐答案

Java在R6中引入了更新10管道,该管道基于Direct3D呈现图形。根据此处的发布说明,它仅支持NVidia和ATI卡,这意味着任何不使用这些卡的人可能会遇到问题。由于这是最近的创新,我建议任何使用旧驱动程序的人都可能遇到问题。升级视频驱动程序可能会修复第一种情况但不会修复最后一种情况。

Java introduced in R6 update 10 a pipeline that renders graphics based on Direct3D. According to the release description here it supports only NVidia and ATI cards, which means anyone not using those cards may have a problem. Since it is a recent innovation I would suggest that anyone using old drivers for those cards may also have problems. Upgrading a video driver will probably fix the first case but not the last.

如果将sun.java2d.d3d设置为false,可能发生的最坏情况是某些用户将没有达到理论上可以达到的性能。您必须平衡这是否比您目前看到的问题更可取。

If you set sun.java2d.d3d to false the worst that can happen is that some users will not achieve the performance that they theoretically could. You will have to balance whether this is preferable to the issues that you are seeing at the moment.

这篇关于Java 1.6中Java Swing App中的绘画问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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