Re: [JAVA2D] vertical synchronization in full screen exclusive mode problem

2008-07-27 Thread java2d
I use the default xorg.conf on my ubuntu 8.04, on a system with Nvidia chip. Note that I _don't_ use the NVIDIA's proprietary drivers, and the default window manager is used. I have the following relevant extensions (as reported by xdpyinfo) DOUBLE-BUFFER RANDR In this

Re: [JAVA2D] vertical synchronization in full screen exclusive mode problem

2008-07-22 Thread Dmitri Trembovetski
[EMAIL PROTECTED] wrote: Our experiences differ, then. It works just fine if you have RANDR extension set up and configured. Try running your application with J2D_TRACE_LEVEL=4 env. variable set, see if it prints out any errors. No errors reported. We have only seen a handful of

Re: [JAVA2D] vertical synchronization in full screen exclusive mode problem

2008-07-21 Thread java2d
Dear Dmitri, thank you for your response. Our experiences differ, then. It works just fine if you have RANDR extension set up and configured. Try running your application with J2D_TRACE_LEVEL=4 env. variable set, see if it prints out any errors. No errors reported. We have only

Re: [JAVA2D] vertical synchronization in full screen exclusive mode problem

2008-07-18 Thread Dmitri Trembovetski
[EMAIL PROTECTED] wrote: Not at this point. We'll be adding API to do that in Java 7 hopefully. In 6u10 we added some internal API to request a vsync-ed strategy. This API is in sun.* package so it may change or go away in the future so I'm not sure of how much use it is. Is this all

Re: [JAVA2D] vertical synchronization in full screen exclusive mode problem

2008-07-09 Thread java2d
thanks Ken, the code is in your mailbox. [Message sent by forum member 'boyaci' (boyaci)] http://forums.java.net/jive/thread.jspa?messageID=285387 === To unsubscribe, send email to [EMAIL PROTECTED] and include in the body

Re: [JAVA2D] vertical synchronization in full screen exclusive mode problem

2008-07-09 Thread Dmitri Trembovetski
[EMAIL PROTECTED] wrote: Note that vsync is not really guaranteed by BufferStrategy, no matter if it's FSEM or windowed mode. That's very sad to know. Is there an alternative to using BufferStrategy to achieve vsync in Java? Not at this point. We'll be adding API to do that in Java 7

Re: [JAVA2D] vertical synchronization in full screen exclusive mode problem

2008-07-09 Thread Ken Warner
My latest version of VSyncApplet toggles between the use of Image and BufferedImage for simple drawing. Both are rendered to the screen with BufferStrategy. I see disturbing results. BufferedImages are half as fast as Image for simple drawing. I'm probably doing something wrong. Any

Re: [JAVA2D] vertical synchronization in full screen exclusive mode problem

2008-07-09 Thread java2d
BufferedImages are half as fast as Image for simple drawing. I'm probably doing something wrong. Any improvement in the code will be appreciated. After repeatedly insulting the Java2D team members that were trying to have a constructive dialog, i wouldn't hold my hopes too high. [Message

Re: [JAVA2D] vertical synchronization in full screen exclusive mode problem

2008-07-09 Thread Ken Warner
I think you misunderstand my intentions. The applet shows a profound defect in the Java2D API. Either the applet is wrong or the Java2D API needs work. I'm trying to illuminate the problem with my applet. If the applet uses the Java2D API wrong when I use standard programming strategies, then

Re: [JAVA2D] vertical synchronization in full screen exclusive mode problem

2008-07-09 Thread java2d
I've done (redone the wheel likely) a fake full screen code. I'm not going to spam the forum again with it. The only thing that changed is that the construtor now starts with the correct (hopefully) size: ... setExtendedState(MAXIMIZED_BOTH); Insets i =

[JAVA2D] vertical synchronization in full screen exclusive mode problem

2008-07-08 Thread java2d
Hi all, I can get vertical synchronization in full screen exclusive mode with JDK1.5 but not with JDK1.6. I am using the strategy outlined at http://java.sun.com/javase/6/docs/api/java/awt/image/BufferStrategy.html. I tested this on two systems and the outcome is the same. The systems are:

Re: [JAVA2D] vertical synchronization in full screen exclusive mode problem

2008-07-08 Thread Ken Warner
Do you feel like posting the whole code? I'd like to turn it into an applet for test purposes. It would be an excellent test program. I'll repost it as an applet. You can email it to me direct at: [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi all, I can get vertical synchronization in

Re: [JAVA2D] vertical synchronization in full screen exclusive mode problem

2008-07-08 Thread Dmitri Trembovetski
Hi, [EMAIL PROTECTED] wrote: Hi all, I can get vertical synchronization in full screen exclusive mode with JDK1.5 but not with JDK1.6. I am using the strategy outlined at http://java.sun.com/javase/6/docs/api/java/awt/image/BufferStrategy.html. I tested this on two systems and the

Re: [JAVA2D] vertical synchronization in full screen exclusive mode problem

2008-07-08 Thread java2d
Oh, http://pancyl.com/VSync.htm [Message sent by forum member 'demonduck' (demonduck)] http://forums.java.net/jive/thread.jspa?messageID=285247 === To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of

Re: [JAVA2D] vertical synchronization in full screen exclusive mode problem

2008-07-08 Thread java2d
Well, I made an applet that I don't think really demonstrates much. It just moves a bar across the screen -- 1 pixel per draw. The numbers in the lower left is the approximate number of frames per second. You can enter fullscreen (exclusive?) mode by pressing F1 and exit with ESC. I don't