1.5 beta 2 openGL pipeline in fullscreen.
Thanks for your interest:
I used System.setProperty("sun.java2d.opengl","True"); to use the new openGL pipeline and found
that I can run my game in windowed mode with unprecedented performance (accelerated text, primitive
shapes, etc.) however, I get an error when in fullscreen mode:
Exception in thread "main" java.lang.IllegalArgumentException: Invalid display mode
at sun.awt.Win32GraphicsDevice.setDisplayMode(Unknown Source)
(I didn't have this before I set the OpenGL flag to True)
Here's how I have my app set up:WIDTH = 640
HEIGHT = 480
BIT_DEPTH = default
REFRESH = DisplayMode.REFRESH_RATE_UNKNOWNI've querried to make sure these settings are OK for a valid 'DisplayMode': DEVICE = GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice();
DEVICE.setFullScreenWindow(FRAME);
test_Graphics_Device(); // this is where I test for valid DisplayMode
DEVICE.setDisplayMode(new DisplayMode(WIDTH, HEIGHT, BIT_DEPTH, REFRESH)); // this is where the error line is
FRAME.createBufferStrategy(2);Any suggestions would be greatly appreciated!
Make sure the DisplayMode object you pass into setDisplayMode() is 1 obtained from getDisplayModes().
Similar Messages
-
Is there any way so FF in full screen mode do not force other application to hide? i would like to use full screen mode more often but for instance it force my winamp to hide and i cant switch music or use any other app that i would like to at the same time when I'm browsing the web. I think it would be very usefull for many ppl who brows pictures etc. and for navigation they use mouse commands.
Thanks.offcorse i know that but fullscreen mode hide status bar, tabs etc and show it when i move my mouse on it and thats why i like it it hide all what i dont need but i need winamp and switchin alt tab all the time its not fun when in can be placed on the down corner, when wimamp skin is transparent. i woud like to have such a option (for instance in about:config.
-
Java2d opengl pipeline not working for me?
Hi,
this is my first post, I hope that you will help me :)
I've installed arch on my machine, and catalyst drivers.
fgl_glxgears are @ 600 FPS
fglrxinfo returns no errors.
when I run something elese written in java with opengl, everything works just fine.
but, when I use java2d and
-Dsun.java2d.opengl=trueI can't get any output, java isn't drawing anything...
it works on ubuntu machine with nvidia, but not on arch... It's AMD zacate e350 + HD 6310.
output is same when I set J2D_TRACE_LEVEL=4, no errors, just
GL_NV_fragment_program = falseand it is true when everything is working.
I tried with openjdk6 and jre, same result.
Please help me! :(10robinho
First, welcome to Arch Linux. Please do not cross post
This is not the appropriate sub-forum, please continue with https://bbs.archlinux.org/viewtopic.php?id=132100 -
Java2d opengl pipeline not working
Hi,
I've asked this on multimedia forum, but I think that this could be more accurate place, I hope that you will help me
I've installed arch on my machine, and catalyst drivers.
fgl_glxgears are @ 600 FPS
fglrxinfo returns no errors.
when I run something elese written in java with opengl, everything works just fine.
but, when I use java2d and
-Dsun.java2d.opengl=true
I can't get any output, java isn't drawing anything...
it works on ubuntu machine, but not on arch... It's AMD zacate e350 + HD 6310.
output is same when I set J2D_TRACE_LEVEL=4, no errors, just
GL_NV_fragment_program = false
I tried with openjdk6 and jre, same result.
Please help me!10robinho
First, welcome to Arch Linux. Please do not cross post
This is not the appropriate sub-forum, please continue with https://bbs.archlinux.org/viewtopic.php?id=132100 -
OpenGL not starting from java using java web start
Dear All,
I am a beginner in java2d, please excuse if what I am asking is not your standards. My problem is that I am using a swing application that is delivered to a client machine through the webstart. It is a medical Image viewer(usually DICOM images of size 10~15 MB) . I am using windows XP in my client machines. My graphics card is 'Intel(R) 82865G Graphics controller' and installed with the latesr driver from the intel web site. My current problems are:
1. I tried starting the opengl through the command line using the option java -Dsun.java2d.opengl=True MyApp. My application started however the verbose says opengl could not be started. The message is as follows:
Could not enable OpenGL pipeline for default config on screen 0
2. How can I start open gl when my application is run by java web start? How can I know that open gl has started? I tried giving System.setProperty("sun.java2d.opengl","True") in the main function of the program. I couldnt see any message regarding the opengl in the web start console.
Any help would be greatly appreciated,
Thanks in advance,
zeusIm not sure but a lot of times corruption happens and hence its better you redo your scheduling.
Regards,
Den -
Open GL pipeline : Text are not displayed in JComponent
Hello
I have a problem: Using the opengl pipeline (-Dsun.java2d.opengl=True) on a very simple program
which display a frame by screen device (two screens) with a JButton, i have the following effect:
Using JRE 1.6_03 the button's text are displayed
Using JRE 1.6_04 the text on one screen does not appear.
In the two case, I have the message OpenGL pipeline enabled on screen 0:0 and 0:1.
My configuration is:
NVIDIA Quatro NVS 285
xorg.conf configured in TwinView
I have tried the several options (-Dsun.java2d.opengl.fbobject=false, etc.) but still doesn't work.
Does someone can help Me ?
What can this be explained.
When I move the frame on which the text appear to the other one, the text dissapear !!!
I only hace the following trace (J2D_TRACE_LEVEL=4) but I have it with the jre 1.3 and all work fine:
"Could not fine an appropriate fbconfig"This sounds not entirely unrelated to this
[http://forums.sun.com/thread.jspa?forumID=20&threadID=5365222|http://forums.sun.com/thread.jspa?forumID=20&threadID=5365222]
The poster in that thread couldn't find a solution, just a workaround. If you do a search, there are several open bugs related to OpenGL and text. For example, this bug seems to describe exactly the same behavior as you just described, except with a different version of java. In the comments section of that bug is this
I was able to workaround this problem by using the following flag: -Dawt.useSystemAAFontSettings=lcd -
32bit games in fullscreen?
hey!
i am programming my own games in blitzmax, which is 32bit and therefore i installed a 32bit chroot. everything runs fine and i can compile and run my games. BUT only in windowed mode. if i try to run them in fullscreen mode i will get a black screen and the game stops running.
i think this is not a blitzmax issue so i post it here. do i need a special lib to run 32bit opengl games in fullscreen mode?ok here is the debug message i receive if i start a 32bit game in fullscreen mode (windowed mode runs fine!):
bash-3.2$ ./test.debug
X Error of failed request: GLXUnsupportedPrivateRequest
Major opcode of failed request: 144 (GLX)
Minor opcode of failed request: 16 (X_GLXVendorPrivate)
Serial number of failed request: 52
Current serial number in output stream: 781
Locking assertion failure. Backtrace:
#0 /opt/lib32/usr/lib/libxcb-xlib.so.0 [0xf7b4a767]
#1 /opt/lib32/usr/lib/libxcb-xlib.so.0(xcb_xlib_lock+0x2e) [0xf7b4a81e]
#2 /opt/lib32/usr/lib/libX11.so.6 [0xf7ee9ba9]
#3 /opt/lib32/usr/lib/libX11.so.6(XFlush+0x29) [0xf7ec2d99]
#4 ./test.debug [0x8071ad1]
#5 ./test.debug [0x80f9cef]
#6 ./test.debug [0x80f92bc]
#7 ./test.debug [0x80f7d10]
#8 ./test.debug [0x80f78d6]
#9 ./test.debug [0x80f6e7b]
#10 /opt/lib32/lib/libc.so.6(exit+0x89) [0xf7b7d6c9]
#11 /opt/lib32/usr/lib/libX11.so.6 [0xf7ee254e]
#12 /opt/lib32/usr/lib/libX11.so.6(_XError+0xd9) [0xf7ee2629]
#13 /opt/lib32/usr/lib/libX11.so.6 [0xf7eea548]
#14 /opt/lib32/usr/lib/libX11.so.6(_XEventsQueued+0x55) [0xf7eeaeb5]
#15 /opt/lib32/usr/lib/libX11.so.6(_XFlush+0x42) [0xf7eeaf42]
#16 /opt/lib32/usr/lib/libX11.so.6(XFlush+0x31) [0xf7ec2da1]
#17 /opt/lib32/usr/lib/libGL.so.1(glXSwapBuffers+0xea) [0xf7e5d10a]
#18 ./test.debug [0x805a797]
#19 ./test.debug [0x80dc5e5]
test.debug: xcb_xlib.c:73: xcb_xlib_lock: Assertion `!c->xlib.lock' failed.
Abgebrochen
bash-3.2$
it sais sth. about xlib.lock...?!? i have typed "xhost +local:" in the terminal -
-Dsun.java2d.opengl=True not working
Hello,
I'm trying to run java application using -Dsun.java2d.opengl=True, but I
always get "Could not enable OpenGL pipeline for default config on screen 0".
I use 1.5.0_04-b05 SE running on WinXP. The graphics controller is
Intel 82852/82855 GM/GME, driver Nr. 6.14.10.3762.
Can anyone help?
Thanx.
MilanBecause there is none, then intel chipset has some shortcomings when it comes down to OpenGL.
This should be clear even when buying such a card.
In your case I would write Intel an email telling them that java does not run properly. If enough do this maybe we see really fast java in near future...
lg Clemens -
Open GL Vs Quartz - Which is better for 2D game development?
Hi,
I am new to iphone game development. I want to create 2D game. Simple game with objects moving around.
I never used Open GL as well as Quartz. For this game I am planing to study that.
I want to know which is better from OpenGL or Quartz?
And where I can learn more on that?
Thanks,
Ganesh PisalI would recommend against OpenGL for a 2D game. Quartz does a lot of work to avoid updating parts of the screen that haven't changed, something OpenGL doesn't do. The iPhone's implementation of OpenGL has other serious performance issues.
-
Java 2D OpenGL pipe performance in JDK1.5
I've done some tests with OpenGL pipe in JDK1.5 and the results were not that statisfying...
I downloaded the the J2DBench source code from the sun site and runned the tests. The results:
Summary:
Rendering - Default ppl:
Number of tests: 226
Overall average: 60947.21776458781
Best spread: 0.0% variance
Worst spread: 2119.32% variance
(Basis for results comparison)
Rendering - OpenGL:
Number of tests: 226
Overall average: 90528.77058480236
Best spread: 0.0% variance
Worst spread: 21.97% variance
Comparison to basis:
Best result: 15936.15% of basis
Worst result: 14.68% of basis
Number of wins: 154
Number of ties: 0
Number of losses: 72If I interprete these results correctly this means that the OpenGl pipe is 30% slower than without using the pipe.
Am I misunderstanding these results?
Are there know perfromance issues with the OpenGL pipe?
For the completeness: Test environment:
Processor: Intel Pentium 4 CPU 2.8GHz
Memory: 2048 DDR RAM
Windows XP SP2
NVidia GeForce FX 5200 (+ latest driver from NVidia site)
DirectX 9.0c
BR,
FreggyJava2Demo does many things which are hard for the OpenGL pipeline to optimize and therefor is maybe not the optimal benchmark.
But in general the improvements made in java-6.0 were significant.
lg Clemens -
JNLP secure property sun.java2d.opengl
I have problem with passing secure properties to application in JNLP.
When I running application as:
javafx -Dsun.java2d.opengl=True -jar sample.jar
All fine, System.getProperty("sun.java2d.opengl") is "True" and
Result:
…getAccelType(gc)=OpenGL
But as signed webstart application:
javaws sample.jnlp
System.getProperty("sun.java2d.opengl") still "True", but
Result:
…getAccelType(gc)=CPU/Java
By the way in console can see output:
OpenGL pipeline enabled for default config on screen 0
Sample.jar / Main.fx:
package sample;
import javafx.stage.Stage;
import javafx.scene.Scene;
import javafx.scene.text.Text;
import java.awt.GraphicsConfiguration;
import java.awt.GraphicsDevice;
import java.awt.GraphicsEnvironment;
import javafx.scene.effect.*;
import javafx.scene.layout.VBox;
import java.lang.System;
import java.lang.Runtime;
var data:VBox = VBox{};
Stage {
title: "Application title"
scene: Scene {
width: 500
height: 400
content: [
data
FX.deferAction(function():Void {
def gc = GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice().getDefaultConfiguration();
def effects = [
Blend {}
Bloom {}
BoxBlur {}
ColorAdjust {}
DisplacementMap {}
DropShadow {}
Flood {}
GaussianBlur {}
Glow {}
Identity {}
InnerShadow {}
InvertMask {}
Lighting {}
MotionBlur {}
PerspectiveTransform {}
Reflection {}
SepiaTone {}
Shadow {}
for (effect in effects)
insert Text {
content: "{effect.getClass().getSimpleName()}.getAccelType(gc)={effect.getAccelType(gc)}"
} into data.content;
insert Text {
content: "property OpenGL= {System.getProperty("sun.java2d.opengl")}"
} into data.content;
sample.jnlp:
<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+" codebase="file:/home/krolm/NetBeansProjects/sample/dist/" href="sample.jnlp">
<information>
<title>sample</title>
<vendor>krolm</vendor>
<homepage href=""/>
<description>sample</description>
<offline-allowed/>
</information>
<security>
<all-permissions/>
</security>
<update check="always" policy="always"/>
<resources>
<j2se href="http://java.sun.com/products/autodl/j2se" version="1.6+"/>
<extension name="JavaFX Runtime" href="http://dl.javafx.com/1.2/javafx-rt.jnlp"/>
<jar href="sample.jar" main="true"/>
<property name="sun.java2d.opengl" value="True"/>
</resources>
<application-desc main-class="com.sun.javafx.runtime.main.Main">
<argument>MainJavaFXScript=sample.Main</argument>
</application-desc>
</jnlp>
$ java -version
java version “1.6.0_16″
Java(TM) SE Runtime Environment (build 1.6.0_16-b01)
Java HotSpot(TM) Server VM (build 14.2-b01, mixed mode)
Debian GNU/Linux squeeze/sid
Thanks in advanceKrolm wrote:
I have problem with passing secure properties to application in JNLP. AFAIR, for secure properties to have an effect, you need to include a copy of the JNLP in the main, signed Jar. The JNLP in the Jar must match, byte-for-byte, the JNLP file that launches the application.
sample.jnlp:You JNLP file is invalid. It has elements out of the correct order. To validate JNLP files I (wrote &) recommend either [YAX-V|http://pscode.org/xml/xmltools.html#yaxv] or JaNeLA. YAX-V is purely a validation app., whereas JaNeLA does validation + other checks more specific to JWS launches.
Here is a valid version of your JNLP file, with a comment in it about another dubious aspect.
<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+" codebase="file:/home/krolm/NetBeansProjects/sample/dist/" href="sample.jnlp">
<information>
<title>sample</title>
<vendor>krolm</vendor>
<!-- Why is this href empty? If you don't use it, remove it. -->
<homepage href=""/>
<description>sample</description>
<offline-allowed/>
</information>
<security>
<all-permissions/>
</security>
<update check="always" policy="always"/>
<resources>
<j2se href="http://java.sun.com/products/autodl/j2se" version="1.6+"/>
<jar href="sample.jar" main="true"/>
<extension name="JavaFX Runtime" href="http://dl.javafx.com/1.2/javafx-rt.jnlp"/>
<property name="sun.java2d.opengl" value="True"/>
</resources>
<application-desc main-class="com.sun.javafx.runtime.main.Main">
<argument>MainJavaFXScript=sample.Main</argument>
</application-desc>
</jnlp>And that reminds me. When posting code, code snippets, XML/HTML or input/output, please use the code tags. The code tags help retain the indentation and formatting of the sample. To use the code tags, select the sample and click the CODE button.
Thanks in advanceNo worries. -
Why is OpenGl at version 2.1?
Hi there...
I am wondering why Mac OSX only supports up to version 2.1 of Open Gl?
The current version is up to 4.1
Is it safe to say that with Lion coming out in the future that we will see Apple support 4.1 then?
It is frustrating to see a "Windows" system thrash my Mac in terms of "gaming" performance....
Is part of the issue with the two graphic card makers that do not support Apple to the degree taht they support "Windows"?
Anyone able to help enlighten me?
Thank youIs it safe to say that with Lion coming out in the future that we will see Apple support 4.1 then?
No.
It is frustrating to see a "Windows" system thrash my Mac in terms of "gaming" performance....
See* http://www.macmaps.com/macgamepages.html
There are more options for Mac gaming than ever before.
Is part of the issue with the two graphic card makers that do not support Apple to the degree taht they support "Windows"?
Not necessarily. The operating system has its own OpenGL framework that is operating system wide. If you read http://www.apple.com/macosx/ you'll recognize that. The other thing is, Apple machines are designed from the ground up to have graphics performance be more based on hardware, not software. There have been separate ROM firmware that holds certain graphics commands unique to Macs since the beginning. Only recently are Windows machines approaching that idea. Regardless, if a game you find is not performing as well on the Mac side of things, find out if running Windows on the Mac will make it perform better.
OpenGL is not the only framework that makes for graphics. Apple has developed its own Core Graphics engines, as well as Quicktime frameworks. If a game doesn't choose to use those, it is only because gamers aren't as demanding of them on the Mac as they ought to be.
If gamers got more informed, they need to inform the game developers what they need for games on the Mac. Obviously they haven't been doing so in the numbers necessary for game developers to optimize for the Mac platform in every instance. Some game developers do better at it than others. I would look at the references on my above link to discover who are the ones that do the best, and find out if you can convince the others to improve their games.
- * Links to my pages may give me compensation. -
Change of latest version of java
hi,
where can i see the change in java language given by the new release?
thanksI need to know what are the difference between the old version and the latest.I guess your browser isn't able to follow links. Well, here you go, I clicked on the link that the first responded gave you. Mind you, it's not formatted very well:
SCOPE
AREA*/*
COMPONENT
SYNOPSIS
RFE
api
client/2d
ImageIO: GIF writer
[4339415|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4339415]
imp
client/2d
Native Text Rendering Parity
[4726365|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4726365]
imp
client/2d
Improved hardware acceleration on Windows
[5104393|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5104393]
imp
client/2d
Single-threaded rendering for OpenGL pipelines
[6219284|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6219284]
api
client/awt
Pop-up splash screen at beginning of Java startup
[4247839|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4247839]
api
client/awt
Java applications can access desktop applications
[6255196|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6255196]
api
client/awt
Improved modal dialogs
[4080029|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4080029]
imp
client/awt
XAWT is the default Toolkit on Solaris
[5049146|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5049146]
api
client/awt
Windows system-tray support
[4310333|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4310333]
imp
client/awt
Better support for input in non-English locales
[4360364|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4360364]
imp
client/awt
Live resizing
[6199167|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6199167]
imp
client/deploy
Improved application deployment across browsers
[6329487|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6329487]
api
client/deploy
Allow JAR files to be shared across installed JREs
[6271065|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6271065]
imp
client/deploy
Improved user experience in JRE/JDK installer
[5079209|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5079209]
imp
client/deploy
Improved security
[6222485|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6222485]
imp
client/deploy
Direct execution of JAR files on Linux
[6211008|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6211008]
imp
client/deploy
Improved desktop integration in Java Web Start
[4625362|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4625362]
imp
client/deploy
Improved IFTW installer
[6198632|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6198632]
imp
client/deploy
Improved startup & footprint for plugin/webstart
[6329480|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6329480]
imp
client/deploy
Mozilla Firefox browser support
[6216340|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6216340]
imp
client/deploy
Default Java on Linux
[6211006|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6211006]
imp
client/deploy
Improved user experience in Java Plug-in and Java Web Start
[6205064|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6205064]
imp
client/deploy
Unified download engine
[4802551|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4802551]
imp
client/deploy
Support Mozilla and Firefox family browsers.
[6216340|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6216340]
api
client/dnd
A way to avoid hangs on retrieval of clipboard data
[4818143|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4818143]
imp
client/i18n
Support for important locales
[4324505|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4324505]
imp
client/i18n
Japanese calendar
[4609228|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4609228]
api
client/i18n
Resource bundle enhancements
[5102289|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5102289]
api
client/i18n
Normalizer API
[4221795|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4221795]
api
client/i18n
Pluggable locales: Pluggability for break iterators
[4052440|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4052440]
api
client/i18n
Pluggable locales: Pluggability for locale names, formatters, and collators
[4052440|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4052440]
imp
client/l10n
Chinese localization for JDK tools
[6209342|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6209342]
imp
client/swing
GTK Native L&F Fidelity
[6185456|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6185456]
imp
client/swing
Through-the-stack: Reduced footprint / startup time
[6329480|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6329480]
imp
client/swing
Native look & feel fidelity <!--
<blockquote>
JSR 15: Image IO Framework
<br>
JSR 183: Web Services Message Security APIs
<br>
JSR 185: Java Technology for the Wireless Industry
</blockquote>
-->
imp
client/swing
Avalon Look-and-Feel
[6329475|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6329475]
api
client/swing
JTable sorting, filtering, and highlighting
[4747079|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4747079]
api
client/swing
JTabbedPane: Tabs as Components
[4499556|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4499556]
imp
client/swing
Windows native L&F fidelity
[5106661|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5106661]
api
client/swing
SwingWorker
[4681682|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4681682]
api
client/swing
Improve Drag & Drop features for Swing Components
[4468566|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4468566]
api
client/swing
Extend SpringLayout
[4726194|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4726194]
api
client/swing
Text Document Printing
[4791649|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4791649]
imp
client/swing
Improved Painting Performance (fix grey boxes)
[4967886|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4967886]
jsr
core/core
[JSR 223|http://jcp.org/en/jsr/detail?id=223]: Scripting for the Java Platform
[6249843|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6249843]
api
core/debug
Multiple Simultaneous Agents
[4772582|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4772582]
api
core/debug
Added Heap Capabilities to JPDA
[4914266|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4914266]
api
core/debug
Attach-on-demand
[6173612|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6173612]
api
core/debug
JVMPI and JVMDI have been removed.
[4914266|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4914266]
api
core/jndi
Read-timeout specification for LDAP operations
[6176036|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6176036]
api
core/libs
Array Reallocation API
[4655503|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4655503]
imp
core/libs
BigDecimal optimizations for specjbb++
<!--6177836-->
api
core/libs
Floating point: Add IEEE 754 recommended functions to java.lang.{{,Strict}Math}
[4406429|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4406429]
api
core/libs
Standard service-provider API (java.util.Service)
[4640520|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4640520]
api
core/libs
Collections and Concurrency Updates
[6268386|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6268386]
api
core/libs
IO Enhancement: Password Prompting
[4050435|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4050435]
api
core/libs
IO Enhancement: File Attributes
[6216563|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6216563]
api
core/libs
IO Enhancement: Method for Discovering Free Disk Space
[4057701|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4057701]
imp
core/libs
IO Enhancement: Long pathnames on Windows
[4403166|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4403166]
api
core/libs
Low-level Java compiler API for IDEs
[4813736|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4813736]
jsr
core/libs
[JSR 202|http://jcp.org/en/jsr/detail?id=202]: Java Class File Specification Update
[4639391|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4639391]
jsr
core/libs
[JSR 199|http://jcp.org/en/jsr/detail?id=199]: Java compiler API
[4164450|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4164450]
imp
core/libs
Improved perceived footprint
[6280693|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6280693]
api
core/libs
Deques
[6192552|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6192552]
api
core/libs
Navigable Maps and Sets
[4155650|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4155650]
imp
core/libs
BitSet Updates
[4963875|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4963875],
[4979017|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4979017],
[4979028|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4979028],
[4979031|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4979031],
[5030267|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5030267],
[6222207|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6222207],
[6404711|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6404711]
imp
core/libs
Performance Improvements when compiling using network file systems
[4770745|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4770745]
imp
core/m&m
Improved diagnosability of OutOfMemoryError
[6173515|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6173515]
api
core/m&m
Generic annotations for MBean descriptor contents
[6221321|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6221321]
api
core/m&m
Support for java.util.concurrent locks in the lock related facility
[5086470|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5086470]
imp
core/m&m
jconsole is more user-friendly
[6174397|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6174397]
api
core/m&m
Small-scale improvements to JMX Monitor API
[6222961|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6222961]
api
core/m&m
descriptors added to all types of MBean
[6204469|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6204469]
api
core/m&m
MXBeans added to JMX
[6175517|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6175517]<!-- not in beta
<tr>
<td>imp</td>
<td>core/m&m</td>
<td>Improved crash/core-dump handling</td>
<td>6309336</td>
</tr>
-->
api
core/net
Light-weight HTTP server
[6270015|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6270015]
api
core/net
Internationalized resource identifiers
[5085902|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5085902]
api
core/net
Default CookieManager implementation
[6244040|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6244040]
imp
core/net
SPNEGO HTTP authentication
[6260531|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6260531]
api
core/net
International domain names
[4737170|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4737170]
api
core/net
Programmatic access to network parameters
[4691932|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4691932]
imp
core/sec
Native platform GSS integration
[6202035|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6202035],
[6345202|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6345202]
imp
core/sec
SPNEGO in Java GSS
[6239635|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6239635]
imp
core/sec
MS CAPI Keystore provider
[6318171|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6318171]
imp
core/sec
Better support for NSS keystore
[6273877|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6273877]
imp
core/sec
Improved Policy performance
[5037004|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5037004]
imp
core/sec
[JSR 268|http://jcp.org/en/jsr/detail?id=268]: Java Smart Card I/O API
[6239117|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6239117]
jsr
core/sec
[JSR 105|http://jcp.org/en/jsr/detail?id=105]: XML DSig
[4635230|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4635230]
api
core/sec
Enhance certificate APIs
[4635060|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4635060]
jsr
core/tools
[JSR 269|http://jcp.org/en/jsr/detail?id=269]: Standard pluggabilty API for annotation processors (APT)
[6222574|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6222574]
imp
core/tools
javac: Support for split verification
[6227862|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6227862],
[6227862|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6227862],
[5110170|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5110170],
[5110184|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5110184],
[6217263|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6217263]
imp
core/tools
javac: Implement
[JSR 175's|http://jcp.org/en/jsr/detail?id=175]
java.lang.SuppressWarnings
[4986256|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4986256]
imp
core/tools
Class-path wildcards
[6268383|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6268383]
jsr
ee/ee
[JSR 250|http://jcp.org/en/jsr/detail?id=250]: Common annotations
[6304697|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6304697]
imp
ee/jdbc
Extended JDBC-ODBC bridge to enable JDBC 4.0 EoD features
[6290312|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6290312]
jsr
ee/jdbc
[JSR 221|http://jcp.org/en/jsr/detail?id=221]: JDBC 4.0
[6290312|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6290312]
imp
ee/xml
JAXP 1.4
bq. [JSR 206|http://jcp.org/en/jsr/detail?id=206]: Java API for XML Processing
[6317994|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6317994]
jsr
ee/xml
Support for the Web Services stack
bq. [JSR 222|http://jcp.org/en/jsr/detail?id=222]: JAXB 2.0 \\ [JSR 224|http://jcp.org/en/jsr/detail?id=224]: JAX-RPC 2.0[JSR 173|http://jcp.org/en/jsr/detail?id=173]: STAX[JSR 181|http://jcp.org/en/jsr/detail?id=181]: Web Services Metadata
[6245626|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6245626]
<!-- sub JSRs of Web Services stack covered in prior entry
<tr>
<td>jsr</td>
<td>ee/xml</td>
<td>JSR 222: JAXB 2.0</td>
<td>6245626</td>
</tr>
<tr>
<td>jsr</td>
<td>ee/xml</td>
<td>JSR 224: JAX-RPC 2.0</td>
<td>6245626</td>
</tr>
-->
api
ee/xml
JavaBeans Activation Framework (JAF)
[6254474|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6254474]
imp
vm/compilers
Improved performance of compiled code
[5079711|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5079711],
[6206844|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6206844],
<!--
6229114,
-->
[6239807|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6239807],
<!--
6269053
-->
[4850474|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4850474],
[5003419|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5003419],
[5004907|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5004907],<!--
5007322,
-->
[5101346|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5101346],
[6190413|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6190413],
[6191063|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6191063],
[6196383|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6196383],
[6196722|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6196722],
[6211497|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6211497],
[6232485|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6232485],
[6233627|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6233627],
[6245809|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6245809],[6251002|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6251002],<!--
6261602,
-->
[6262235|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6262235],
<!--
6264252,
6284962
-->
imp
vm/c1
Linear scan register allocator for C1
[6320351|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6320351]
imp
vm/c2
Improved loop optimization
<!--
5010187,
-->
[5073662|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5073662],
[5074608|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5074608],
[5091921|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5091921],
[6260293|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6260293]
imp
vm/c2
Escape analysis
<!--
5074913,
-->
[6339956|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6339956]
imp
vm/c2
Lock coarsening
[6245809|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6245809]
imp
vm/gc
CMS: Parallelize concurrent marking
imp
vm/gc
Parallel compaction<!--
4743071
-->
imp
vm/runtime
Improve uncontended synchronization performance <!--
6264252
-->
imp
vm/runtime
Improved performance of contended synchronization operations<!--
5030359
-->
imp
vm/runtime
Faster format checker/class-file parser<!--
4990299
-->
imp
vm/runtime
Improved startup time
[6179212|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6179212]
imp
vm/runtime
Improved runtime performance<!--
6237688
-->
imp
vm/runtime
Improved JNI performance
[5086424|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5086424]
imp
vm/runtime
Class circularity detection
[4699981|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4699981]
imp
vm/runtime
DTrace support in the VM -
Poor max. possible performance? BufferStrategy, VolatileImage etc.
Hi, please tell if this is all I can get with Java, Linux, and opengl pipeline,
If anything could be done better - please tell me.
I mean:
at 2.4ghz @ 3.6ghz P4, geforce6600, precompiled kernel 2.6.23, nvidia driver installed and java 1.6.0_04
I'm achiving about 40 FPS (drawing 10000 imager 6x6 each frame) with this code:
import java.awt.*;
import java.awt.event.*;
import java.awt.image.BufferStrategy;
import java.awt.image.VolatileImage;
import javax.swing.JFrame;
import javax.swing.Timer;
class g2 extends JFrame {
MouseListener ml = new MouseListener() {
public void mouseClicked(MouseEvent e) {
System.exit(0);
public void mousePressed(MouseEvent e) {
public void mouseReleased(MouseEvent e) {
public void mouseEntered(MouseEvent e) {
public void mouseExited(MouseEvent e) {
GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
GraphicsConfiguration gc = ge.getDefaultScreenDevice().getDefaultConfiguration();
Canvas canvas;
VolatileImage img;
BufferStrategy bs;
Graphics2D g2D;
public g2(){
this.setSize(805,600);
canvas = new Canvas(gc);
canvas.setSize(800,600);
canvas.addMouseListener(ml);
this.setResizable(false);
this.setIgnoreRepaint(true);
this.setLayout(new BorderLayout());
this.getContentPane().add(canvas,BorderLayout.CENTER);
this.setVisible(true);
try {
canvas.createBufferStrategy(2, gc.getBufferCapabilities());
} catch (AWTException e) {}
bs = canvas.getBufferStrategy();
System.out.println(String.valueOf(bs.getCapabilities().getBackBufferCapabilities().isAccelerated()));
System.out.println(String.valueOf(bs.getCapabilities().getFrontBufferCapabilities().isAccelerated()));
System.out.println(String.valueOf(bs.getCapabilities().getBackBufferCapabilities().isTrueVolatile()));
System.out.println(String.valueOf(bs.getCapabilities().getFrontBufferCapabilities().isTrueVolatile()));
img = gc.createCompatibleVolatileImage(6,6,Transparency.OPAQUE);
System.out.println(String.valueOf(img.getCapabilities().isAccelerated()));;
System.out.println(String.valueOf(img.getCapabilities().isTrueVolatile()));;
Thread mainThread = new Thread(new mainLoop());
mainThread.start();
public static void main(String[] args){
System.setProperty("sun.java2d.opengl", "True") ;
new g2();
public class mainLoop implements Runnable{
int frame,fps;
public void run(){
frame=fps=0;
g2D = (Graphics2D)img.createGraphics();
g2D.setColor(Color.RED);
g2D.fillRect(0, 0, 6, 6);
g2D.dispose();
Timer fpsTimer = new Timer(1000,new ActionListener() {
public void actionPerformed(ActionEvent e) {
fps=frame;
frame=0;
fpsTimer.start();
while(true){
loop();
void loop(){
frame++;
g2D = (Graphics2D)bs.getDrawGraphics();
g2D.setColor(Color.BLACK);
g2D.fillRect(0, 0, 800, 600);
for(int i = 0; i < 10000; i++){
g2D.drawImage(img,300,300,null);
g2D.setColor(Color.GREEN);
g2D.drawString(String.valueOf(fps), 10, 10);
g2D.dispose();
bs.show();
If I remove whole "for" loop in void loop() I get 1120 FPS.
This is Loop() trace for each frame:
OGLFillRect
sun.java2d.opengl.OGLRTTSurfaceToSurfaceBlit::Blit("OpenGL Surface (render-to-texture)", AnyAlpha, "OpenGL Surface")
..... x 10000
OGLDrawGlyphs
sun.java2d.opengl.OGLRTTSurfaceToSurfaceBlit::Blit("OpenGL Surface (render-to-texture)", AnyAlpha, "OpenGL Surface")
System.out.println(String.valueOf(bs.getCapabilities().getBackBufferCapabilities().isAccelerated()));
System.out.println(String.valueOf(bs.getCapabilities().getFrontBufferCapabilities().isAccelerated()));
System.out.println(String.valueOf(bs.getCapabilities().getBackBufferCapabilities().isTrueVolatile()));
System.out.println(String.valueOf(bs.getCapabilities().getFrontBufferCapabilities().isTrueVolatile()));
System.out.println(String.valueOf(img.getCapabilities().isAccelerated()));;
System.out.println(String.valueOf(img.getCapabilities().isTrueVolatile()));; Returns true.
Is it an optimal solution?
P.S. I'm not experienced in Java.There is no problems having corecenter installed in your windows configuration.
Just take it out of the all users "startup" folder so it's not autostarting with windows on boot .
(it doesn't load any services or drivers from services.msc ,all from just the startup-folder)
It's good to have if e.g you wan't a fixed reduced cpu fan or nb fan speed .
Just start it to program the corecellchip on the mobo to set the fans in user mode , and then exit the program again after this is done.
It doesn't have to be running.
The values is stored in the corecell chip on the mobo and will only be reset to defaults after e.g a bios/cmos reset . -
Re: Hardware Accelleration / Playing Video
Yes, such image indeed will not be accelerated - because you have the pointer to the raw data.
Here is an approach which I've suggested to other people with similar issues.
Create a VolatileImage
Copy your BufferedImage to this volatile image
copy the volatile image to the back-buffer
This approach especially helps if you need to copy the image to the backbuffer more often that it's updated by the video stream, or if you need to scale the frames (in the last case you'll need to use -Dsun.java2d.ddscale=true parameter if you're running on windows, or the opengl pipeline with -Dsun.java2d.opengl=true if your hardware/drivers is supported).
Take a look at this thread on javagaming.org which discusses almost exactly the same case as yours:
http://www.javagaming.org/forums/index.php?topic=12453.msg100335#msg100335
Thank you,
Dmitri
Java2D TeamThank you very much dmitri, the thread you linked showed me just how to make it work. Now I can get 30fps with two videos at once.
Previously, I was trying to build up a BufferedImage from a 24bit RGB array of pixels, which I don't think is compatible with most hardware acceleration. Now I get a pointer to a 32bit RGBA array, using:
BufferedImage videoImage;
GraphicsConfiguration gc = videoCanvas.getGraphicsConfiguration();
videoImage = gc.createCompatibleImage(vidWidth, vidHeight);
pixelData = ((DataBufferInt) videoImage.getRaster().getDataBuffer()).getData();With minor changes to my C code I store the pixels in this buffer instead. This works much better, as the resulting BufferedImage is hardware accelerated. I then can render this BufferedImage straight to the screen, with scaling, very quickly.
Rendering it first to a VolitileImage was causing problems for me, as performance would slow down for some reason if I changed the window's size at all while it was running.
Maybe you are looking for
-
Thanks for responding. Since I upgraded ITUNES to IOS 6, my IPOD Touch no longer works at all. I had numerous apps, music and videos on this touch. It made me restore to factory reset and it still does not work!!! Nothing I do will work on this touch
-
I just gave a try to creating guides in CS3 with this sophisticated snippet: var lyr = app.activeDocument.layers.add(); var gd = lyr.pathItems.add() gd.setEntirePath(Array(Array(100,0), Array(100,100))); gd.guides = true; and was hit by two surprises
-
Wanted brief idea about posting date, document date, entry date
Hi guyz! basically am an tech consultant. But wanted to have brief idea about the following business process. scenario is like this: in inventory management, we are doing some inter facility transfer. i.e., for a particular plant, we are having multi
-
Multi value attribute question
Hello there, Our application would like to have a multi value attribute in DS11.1.1.7.0 on SLES platform. But here is my question.. 1. Can i have a one single attribute with value like companyCode: ABC,XYZ,QWE,RTY 2. OR , can i have like below.. Comp
-
Hi All, I have a pdf which is pretty much a guide. I created InDesign file with layers and exported as pdf. I'm trying to do the following: When i hit one of the navigation links, a layer associated with that link shows up. In layer that showed up, i