Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 231
  • Last Modified:

Exporting Display to other Computer

I am using FullScreen Doublebuffering. On the Server the objects on the screen are moving smoothly, but when I export the display (export DISPLAY=128.3.101.4:0.0) to a Thin Client movements look pretty clumsy.

Any idea?

Thanks!



PS: I cannot use

(...)
int numBuffers = 2;
win.createBufferStrategy(numBuffers);
BufferStrategy strategy = win.getBufferStrategy();
bufCap = strategy.getCapabilities();
BufferCapabilities.FlipContents flipContents = bufCap.getFlipContents();
(...)
if (!flipContents.equals(flipContents.BACKGROUND)) {
   g.setColor(Color.black);
   g.fillRect(0,0, screenWidth,screenHeight);
}
(...)

So I simply do

g.setColor(Color.black);
g.fillRect(0,0,screenWidth,screenHeight);

every 2nd turn.


Which works o.k. for the Server but not for the client.
0
ladwein
Asked:
ladwein
  • 3
  • 2
1 Solution
 
TimYatesCommented:
>> to a Thin Client movements look pretty clumsy.

What's the network connection on the thin client?

Does it exhibit the same behaviour with other applications?
0
 
Mig-OCommented:
AFAIK thats normal. Double Buffering means, that the display is buffered on the client side. When transfering, the X-Server on the thin client, doesn't double buffer, until the complete request is available. Your double buffering just prevents the application from painting the controls one by one.
0
 
Mig-OCommented:
But maybe it helps using another X-Server on the client, or playing around with the X-protocol-versions.
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
ladweinAuthor Commented:
Yes. One day later everything went neary as smoothly as on the server. So it obviously is more a network speed problem than a Java Problem.
0
 
Mig-OCommented:
Now _I_ have a question :). When using doubleBuffering in Java, is the double buffering really done on the X-Server?
0
 
ladweinAuthor Commented:
Good question.

I have to admit that I am no Expert in Java Graphics. I had just been looking for a way to display animations.
So I simple used basic code from Suns Website.

All I can say is, that there is heavy flickering on both machines when DoubleBuffering is turned off. PageFlipping can be used on the Server but _not_ on the Thin Client .
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now