Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (109)
games submitted by our members
Games in WIP (536)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Issues With CreateBufferStrategy in certain JDK versions  (Read 1044 times)
0 Members and 1 Guest are viewing this topic.
Offline newdok

Innocent Bystander





« Posted 2009-07-09 19:41:34 »

Last night i was trying to track down what was causing usage of the java.awt.Frame's createBufferStrategy(int numBuffers, BufferCapabilities caps)  method to fail when specifying a flipContents for a window that already (should have had) full-screen-exclusive mode on a windows machine, was throwing an error to the effect of "this operation is only supported on full-screen-exclusive mode windows". There are several factors that contributed to my bafflement on this matter, first of which is that the app had changed the screen mode (as was clear from a quick task switch), so given java's general refusal to change screen mode unless you aquire a fullscreen window i'm surprised that it would then fail to recognize that in createBufferStrategy. Even more puzzling, this behavior was observed with only one of the two java 6 JDKs i have installed.

-It occured with:
   java version "1.6.0_07"
   Java(TM) SE Runtime Environment (build 1.6.0_07-b06)
   Java HotSpot(TM) Client VM (build 10.0-b23, mixed mode, sharing)

-But not with:
   java version "1.6.0_01"
   Java(TM) SE Runtime Environment (build 1.6.0_01-b06)
   Java HotSpot(TM) Client VM (build 1.6.0_01-b06, mixed mode)

This is a troublesome problem as i was trying to use the flipcontents to force my game to vsync to avoid tearing, and also because i can't seem to find any mentions of this problem from other people. Is this a known problem and does anyone have any suggestions for this(other than the obvious which would be to try the latest version - i'm worried about users who might have outdated versions of java 6 for which this could be troublesome if its not just a fluke)
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

CogWheelz (18 views)
2014-07-30 21:08:39

Riven (25 views)
2014-07-29 18:09:19

Riven (15 views)
2014-07-29 18:08:52

Dwinin (12 views)
2014-07-29 10:59:34

E.R. Fleming (33 views)
2014-07-29 03:07:13

E.R. Fleming (12 views)
2014-07-29 03:06:25

pw (43 views)
2014-07-24 01:59:36

Riven (43 views)
2014-07-23 21:16:32

Riven (30 views)
2014-07-23 21:07:15

Riven (31 views)
2014-07-23 20:56:16
List of Learning Resources
by SilverTiger
2014-07-31 18:29:50

List of Learning Resources
by SilverTiger
2014-07-31 18:26:06

List of Learning Resources
by SilverTiger
2014-07-31 13:54:12

HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!