Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (754)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (842)
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 1465 times)
0 Members and 1 Guest are viewing this topic.
Offline newdok

Innocent Bystander

« Posted 2009-07-09 17: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  

DesertCoockie (22 views)
2018-05-13 18:23:11

nelsongames (70 views)
2018-04-24 18:15:36

nelsongames (67 views)
2018-04-24 18:14:32

ivj94 (751 views)
2018-03-24 14:47:39

ivj94 (81 views)
2018-03-24 14:46:31

ivj94 (605 views)
2018-03-24 14:43:53

Solater (97 views)
2018-03-17 05:04:08

nelsongames (170 views)
2018-03-05 17:56:34

Gornova (388 views)
2018-03-02 22:15:33

buddyBro (1048 views)
2018-02-28 16:59:18
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05 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‑
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!