Hi,

[EMAIL PROTECTED] wrote:
Sorry Dmitri, very unprofessional of me.

It's Windows Vista and JSE 6 Update 10 b26.

  First, on Vista with Aero enabled you'd get
  that black flashing occasionally, this is just
  the way Aero works. You can get the same artifacts
  with "native" Direct3D applications.

  Second, you should disable repaints with setIgnoreRepaint().
  You don't need to override paint/update in this case - they
  won't be called.

  In fact, using paint()/update() with BufferStrategy
  is mixing two different painting concepts - active
  and passive rendering.
    http://java.sun.com/docs/books/tutorial/extra/fullscreen/rendering.html
  This is applicable to windowed mode as well.

  Typically with BufferStrategy one would use
  active rendering, meaning that there's a thread with
  a rendering loop which does all the rendering, and
  the usual repainting mechanism is turned off.

  run() {
    do {
      collectUserInput();
      changeWorldState();
      render();
    } while (true);
  }

  As for the resizing artifacts,
  I'm wondering if you could somewhat reduce the
  artifacts during resize if you attach drag/resize
  listener to your window and pause your rendering
  loop until the window stopped resizing. It probably
  won't look pretty during the resize but you may
  avoid flashing.

  Thanks,
    Dmitri

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to