Hi Dmitri,

1)

 This is just the way the fullscreen windows behave on
 Windows. Native applications have the same issues.

Yes, I did some tests and the behavior is exactly the same of the java2d
implementation.


2)

 Unfortunately there's no way to have a vsynced BufferStrategy for a
 non-fullscreen window.

Visual results can be a way better if we use WaitForVerticalBlank() from
directshow. I did some experiments and, yes, the output doesn't suffer of
the "tearing" effect you get without synchronization. Of course you'll have
to be fast enough to blit the entire buffer by the time of 1 scanline.
Results are really encouraging.
I'm going to implement this feature into a simple JNI lib. I already have
multi-monitor support, so that you can synch with the VBlank of the monitor
you're open on.

RFE: It would be nice to have a .show(boolean VSynch) in java2d. The main
problem is the CPU load: the caller waits until it gets the vsynch. The
implementation could setup an event and be signalled when the vsynch
arrives.


3)

 This sounds interesting. I'm not sure how exactly you implemented
 this so I can't say why it doesn't work in a full-screen window.

 Are you adding your canvas to a frame and then entering the
 full-screen with that frame or something like that?

Exactly. I'm using the VMR9 Video Mixing Renderer Filter (windowless mode).
The implementation uses a Canvas. I get its HWND by JAWT and paint the
videoclip frame there, at Canvas bounds. It's real fun to use. Players can
be layouted, added, removed, etc. Of course overlapping components are not
handled, as it would require a frame-capture of the clip.

I can send you something (jars, src, test code), if you want.

Cheers,

Mik
============================================================================
ClassX Development Italy  Via Francesca, 368/I I-56030 S.M. a Monte (PI) <
Tel.(+39)-0587-705153  Fax.(+39)-0587-705153  WEB: http://www.classx.it  <
============================================================================



----- Original Message -----
From: "Dmitri Trembovetski" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, January 17, 2006 4:47 PM
Subject: Re: [JAVA2D] FullScreen, BufferStrategy, Vertical Blanking


 Hi Mik,

On Mon, Jan 16, 2006 at 09:46:23AM +0100, Michele Puccini wrote:
> Hello everybody,
>
> I've done some experiments with both FullScreen exclusive mode and
> BufferStrategy and I have some questions (win32):
>
> 1) Imagine a dual monitor application, the main monitor for the GUI and
> the
> second for the fullscreen preview.
>
> Why the fullscreen preview iconifies automatically when I select window
> different from my app window or when another window gets the focus ?
> When
> this happens I have to manually re-select (ALT-TAB) the preview window
> in
> order to show it again.

 This is just the way the fullscreen windows behave on
 Windows. Native applications have the same issues.

> 2) The same dual monitor application does not suffer of the
> "auto-iconify
> feature" if I don't use the FullScreen API (i.e.
> setFullScreenWindow(null)),
> but the output doesn't seem to be synched to the Vertical Blanking as
> expected. How can I get a BufferStrategy window that is vsynched to the
> frequency of the screen it uses ?

 Unfortunately there's no way to have a vsynced BufferStrategy for a
 non-fullscreen window.

> 3) Maybe too much win32-specific and a bit offtopic, but maybe of some
> interest for the group. I've created a MediaPlayerCanvas using JNI,COM
> and
> the VMR9 Video Mixing Renderer Filter. It works really well with any
> kind of
> media, but it doesn't display on a FullScreen window. Maybe "Exclusive
> mode"
> means something.. Anyway I always thought that a hardware window should
> work
> regardless the kind of page-flipping system.

 This sounds interesting. I'm not sure how exactly you implemented
 this so I can't say why it doesn't work in a full-screen window.

 Are you adding your canvas to a frame and then entering the
 full-screen with that frame or something like that?

 Thanks,
   Dmitri
 Java2D Team

===========================================================================
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".


===========================================================================
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