开发者

Why scrolling in browser make java applet flicker?

I always found this rather annoying fact about applets, that they disappear if you scroll the browser win开发者_如何学运维dow, to reappear when the scrolling is over. What's the reason behind this behavior ?


Because Java Applets use the normal/slow 2D capabilities of your graphic card. The fact that the stack is big/complex, OS -> Browser -> Java VM -> Your application does not help either.

Flash applications use 3D acceleration behind the scenes by default, so they do not suffer from this problem since they plug-in into your 3D card directly (bypassing the browser canvas).

You can try running Java2D/applets using 3D acceleration as well, but then you lose the compatibility that Java platform offers (OS agnostic).

http://java.sun.com/j2se/1.5.0/docs/guide/2d/new_features.html

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜