Skip to main content

BufferCapabilities and ImageCapabilities

5 replies [Last post]
meix
Offline
Joined: 2008-07-25

Hi everybody,

I have been using Java for a few years now and want to get into Java game programming.
Currently I am using standard Java 6 and want to do an FSEM game.
However, when I look at the BufferCapabilities and ImageCapabilities before and after switching to 1024x768x32 FSEM I get the info that

Image Caps. isAccelerated: false
Image Caps. isTrueVolatile: false
Buffer Caps. isPageFlipping: false
Buffer Caps. Flip Contents: false
Buffer Caps. Full-screen Required: false
Buffer Caps. MultiBuffers: false

which confuses me because I got a NVidia GeForce 7900 GS which has page flipping and lots of other stuff.

Can someone comment on this? I would be very happy!

Thanks a lot and best regards

Andreas

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Dmitri Trembovetski

Hi Andreas,

what java version do you use? Which operating system?

The 7900 should have hw acceleration enabled on Windows.

Please run your app with this env. variable set and
post the results:
#> set J2D_TRACE_LEVEL=4
#> java YourApp

Thanks,
Dmitri

java2d@JAVADESKTOP.ORG wrote:
> Hi everybody,
>
> I have been using Java for a few years now and want to get into Java game programming.
> Currently I am using standard Java 6 and want to do an FSEM game.
> However, when I look at the BufferCapabilities and ImageCapabilities before and after switching to 1024x768x32 FSEM I get the info that
>
> Image Caps. isAccelerated: false
> Image Caps. isTrueVolatile: false
> Buffer Caps. isPageFlipping: false
> Buffer Caps. Flip Contents: false
> Buffer Caps. Full-screen Required: false
> Buffer Caps. MultiBuffers: false
>
> which confuses me because I got a NVidia GeForce 7900 GS which has page flipping and lots of other stuff.
>
> Can someone comment on this? I would be very happy!
>
> Thanks a lot and best regards
>
> Andreas
> [Message sent by forum member 'meix' (meix)]
>
> http://forums.java.net/jive/thread.jspa?messageID=289421
>
> ===========================================================================
> To unsubscribe, send email to listserv@java.sun.com and include in the body
> of the message "signoff JAVA2D-INTEREST". For general help, send email to
> listserv@java.sun.com and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

meix
Offline
Joined: 2008-07-25

Hi Dmitri,

thanks for your answer.
My java version is jre1.6.0_07. I'm using Windows Vista Home Premium.

The output after setting J2D_TRACE_LEVEL= 4 is

[W] GetFlagValues: DDraw/D3D is disabled on Windows Vista
[W] GetFlagValues: DDraw screen locking is disabled (W2K, XP+)
[ I ] InitDirectX
[V] CheckRegistry: Found Display Device 0: NVIDIA GeForce 7900 GS
[ I ] InitDirectX
[V] CheckRegistry: Found Display Device 0: NVIDIA GeForce 7900 GS
Display mode set to: (1024,768,32)
Image Caps. isAccelerated: false
Image Caps. isTrueVolatile: false
Buffer Caps. isPageFlipping: false
Buffer Caps. Flip Contents: false
Buffer Caps. Full-screen Required: false
Buffer Caps. MultiBuffers: false
[ I ] InitDirectX
[V] CheckRegistry: Found Display Device 0: NVIDIA GeForce 7900 GS

The first line of the output is very interesting. I will have to look into that. Do you have an clue how to enable DDraw/D3D? Why is it disabled??

Greetings

Andreas

meix
Offline
Joined: 2008-07-25

Hi again,

I just "solved" it by setting the compatibility mode of java.exe to XP. Now I get

[W] GetFlagValues: DDraw screen locking is disabled (W2K, XP+)
[ I ] InitDirectX
[V] CheckRegistry: Found Display Device 0: NVIDIA GeForce 7900 GS
[ I ] CreateDevice: lpGUID=0x3acfa8 hMon=0x10001
[ I ] DDSetupDevice
[ I ] DDraw::CreateDDPrimarySurface: back-buffers=0
[V] DDSetupDevice: successfully created primary surface
[V] DDSetupDevice: successfully setup ddraw device
Image Caps. isAccelerated: true
Image Caps. isTrueVolatile: true
Buffer Caps. isPageFlipping: true
Buffer Caps. Flip Contents: Prior
Buffer Caps. Full-screen Required: true
Buffer Caps. MultiBuffers: true
Current Display Mode: (1280,1024,32,60)

[ I ] InitDirectX
[V] CheckRegistry: Found Display Device 0: NVIDIA GeForce 7900 GS
Display mode set to: (1024,768,32)
etc...... (lots more)

Looks good, but I'm wondering if there is a better way.
In another forum I found that java 6 uses DirectX 7 (DirectDraw) which can "collide" with Vista's Desktop Window Manager.

Regards

Andreas

Dmitri Trembovetski

Yeah, releases prior to 6u10 have some real issues on Vista
with the default pipeline, which is why it is disabled by
default. I would advise against enabling it.

Your best bet is to try the latest 6u10 build from
jdk6.dev.java.net .

Thanks,
Dmitri

java2d@JAVADESKTOP.ORG wrote:
> Hi again,
>
> I just "solved" it by setting the compatibility mode of java.exe to XP. Now I get
>
> [W] GetFlagValues: DDraw screen locking is disabled (W2K, XP+)
> [ I ] InitDirectX
> [V] CheckRegistry: Found Display Device 0: NVIDIA GeForce 7900 GS
> [ I ] CreateDevice: lpGUID=0x3acfa8 hMon=0x10001
> [ I ] DDSetupDevice
> [ I ] DDraw::CreateDDPrimarySurface: back-buffers=0
> [V] DDSetupDevice: successfully created primary surface
> [V] DDSetupDevice: successfully setup ddraw device
> Image Caps. isAccelerated: true
> Image Caps. isTrueVolatile: true
> Buffer Caps. isPageFlipping: true
> Buffer Caps. Flip Contents: Prior
> Buffer Caps. Full-screen Required: true
> Buffer Caps. MultiBuffers: true
> Current Display Mode: (1280,1024,32,60)
>
> [ I ] InitDirectX
> [V] CheckRegistry: Found Display Device 0: NVIDIA GeForce 7900 GS
> Display mode set to: (1024,768,32)
> etc...... (lots more)
>
> Looks good, but I'm wondering if there is a better way.
> In another forum I found that java 6 uses DirectX 7 (DirectDraw) which can "collide" with Vista's Desktop Window Manager.
>
> Regards
>
> Andreas
> [Message sent by forum member 'meix' (meix)]
>
> http://forums.java.net/jive/thread.jspa?messageID=289452
>
> ===========================================================================
> To unsubscribe, send email to listserv@java.sun.com and include in the body
> of the message "signoff JAVA2D-INTEREST". For general help, send email to
> listserv@java.sun.com and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

meix
Offline
Joined: 2008-07-25

I will do that, thanks for your help.

Andreas

> Your best bet is to try the latest 6u10 build from
> jdk6.dev.java.net .
> Thanks,
> Dmitri
> java2d@JAVADESKTOP.ORG wrote: