Java-Gaming.org Hi !
Featured games (81)
games approved by the League of Dukes
Games in Showcase (513)
Games in Android Showcase (119)
games submitted by our members
Games in WIP (576)
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  
  How to force D3D mode on intel cards?  (Read 5141 times)
0 Members and 1 Guest are viewing this topic.
Online CommanderKeith
« Posted 2009-05-03 13:35:23 »

Hi Dmitri,

I was trying to google for a way to force d3d mode on intel cards and came across this:

Quote
There is a way to ignore the results of the hw checks
and force the use of the pipeline, just not via the -D
property but via special env. variable.

We'd like not to expose this unless really necessary
because if people start just setting a property
left and right (as they can or will be able to
with the webstart or applet) - their users may
pay for it, because on some systems the drivers
can bluescreen the system.

http://forums.java.net/jive/thread.jspa?threadID=31500

I was wondering if you could send me a personal message with the env variable just for my own testing?

If you can't, then I was wondering if there is much of a performance boost with those cards using the d3d pipeline?

Thanks a lot  Smiley
Keith

Offline zammbi

JGO Coder


Medals: 4



« Reply #1 - Posted 2009-05-03 13:50:59 »

Is it all intel cards that have it disabled or just the old drivers/old cards?


Current project - Rename and Sort
Offline trembovetski

Senior Duke




If only I knew what I'm talking about!


« Reply #2 - Posted 2009-05-03 19:24:31 »

Hi Dmitri,

I was trying to google for a way to force d3d mode on intel cards and came across this:

http://forums.java.net/jive/thread.jspa?threadID=31500

I was wondering if you could send me a personal message with the env variable just for my own testing?

If you can't, then I was wondering if there is much of a performance boost with those cards using the d3d pipeline?

Thanks a lot  Smiley
Keith

It's not a huge secret - the source is available, after all, so anyone with a bit of time can figure it out:
  http://hg.openjdk.java.net/jdk7/2d/jdk/file/b4450e6de8a3/src/windows/native/sun/java2d/d3d/D3DPipelineManager.cpp

There's an env variable which controls whether we disable the pipeline if hw/os check fails: J2D_D3D_NO_HWCHECK . If set, the check is ignored. You're on your own if you use it. You may also need to set -Dsun.java2d.d3d=true to "force" the d3d pipeline.

Potential performance boost is very much dependent on specific application, hw and driver version. Don't expect much, intel hw is not very good (and drivers aren't great either). Don't even try unless you have something like X3100 or better, with latest drivers.

Dmitri
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline trembovetski

Senior Duke




If only I knew what I'm talking about!


« Reply #3 - Posted 2009-05-03 19:26:29 »

Is it all intel cards that have it disabled or just the old drivers/old cards?



All of them. We may reconsider this as their drivers gotten better, but performance is still not great, especially for stuff like LCD AA text which is rendered with pixel shader. If we were to enable it, it would only be for the latest hw.

Online CommanderKeith
« Reply #4 - Posted 2009-05-04 03:31:59 »

Thanks Dmitri, that's great  Cool

It's such a pity that most computers have intel graphics cards.


Offline zammbi

JGO Coder


Medals: 4



« Reply #5 - Posted 2009-05-04 06:13:12 »

All of them. We may reconsider this as their drivers gotten better, but performance is still not great, especially for stuff like LCD AA text which is rendered with pixel shader. If we were to enable it, it would only be for the latest hw.


Well I had x3100 with latest drivers it played games fine, it played COD 4 ok. There drivers are getting better.

I now have a x4500HD, which I had no trouble with. Plays COD4 and Left 4 Dead all fine. I know I'm comparing with games, which isn't totally right. But I hope you do look into the newer hardware at least.

Current project - Rename and Sort
Offline trembovetski

Senior Duke




If only I knew what I'm talking about!


« Reply #6 - Posted 2009-05-04 23:42:03 »

Well I had x3100 with latest drivers it played games fine, it played COD 4 ok. There drivers are getting better.

I now have a x4500HD, which I had no trouble with. Plays COD4 and Left 4 Dead all fine. I know I'm comparing with games, which isn't totally right. But I hope you do look into the newer hardware at least.


Could you try enabling the pipeline on yours and play around with SwingSet2 or something? Text performance would be most interesting (with LCD AA).
Offline zammbi

JGO Coder


Medals: 4



« Reply #7 - Posted 2009-05-05 01:24:35 »

How would I force it using SwingSet2?

Current project - Rename and Sort
Offline trembovetski

Senior Duke




If only I knew what I'm talking about!


« Reply #8 - Posted 2009-05-05 20:06:30 »

How would I force it using SwingSet2?

1  
2  
3  
#> set J2D_TRACE_LEVEL=4
#> set J2D_D3D_NO_HWCHECK=true
#> java -Dsun.java2d.d3d=true -jar SwingSet2.jar
Offline zammbi

JGO Coder


Medals: 4



« Reply #9 - Posted 2009-05-06 05:43:08 »

Quote
C:\Program Files\Java\jdk1.6.0_12\demo\jfc\SwingSet2>set J2D_TRACE_LEVEL=4

C:\Program Files\Java\jdk1.6.0_12\demo\jfc\SwingSet2>set J2D_D3D_NO_HWCHECK=true


C:\Program Files\Java\jdk1.6.0_12\demo\jfc\SwingSet2>java -Dsun.java2d.d3d=true
-jar SwingSet2.jar
OS Version = OS_VISTA or newer
[E] D3DPPLM::CheckForBadHardware: found matching hardware: VendorId=0x8086 Devic
eId=0xffffffff
[E] D3DPPLM::CheckForBadHardware: bad hardware found, device disabled
[W]   Warning: hw/driver match overridden (via J2D_D3D_NO_HWCHECK)
CheckAdaptersInfo
------------------
Adapter Ordinal  : 0
Adapter Handle   : 0x10001
Description      : Mobile Intel(R) 45 Express Chipset Family (Microsoft Corp
oration - Prerelease WDDM 1.1)
GDI Name, Driver : \\.\DISPLAY1, igdumd64.dll
Vendor Id        : 0x8086
Device Id        : 0x2a42
SubSys Id        : 0x30dd103c
Driver Version   : 8.15.10.1713
GUID             : {D7B78E66-6902-11CF-3D75-D710A7C2C535}
[E] D3DPPLM::CheckForBadHardware: found matching hardware: VendorId=0x8086 Devic
eId=0xffffffff
[E] D3DPPLM::CheckForBadHardware: bad hardware found, device disabled
[W]   Warning: hw/driver match overridden (via J2D_D3D_NO_HWCHECK)
D3DPPLM::CheckDeviceCaps: adapter 0: Passed
------------------
D3DGD_getDeviceCapsNative
D3DContext::InitContext device 0
D3DContext::ConfigureContext device 0
[V] dwBehaviorFlags=D3DCREATE_FPU_PRESERVE|D3DCREATE_HARDWARE_VERTEXPROCESSING
D3DContext::ConfigureContext: successfully created device: 0
D3DContext::InitDevice: device 0
D3DContext::InitDefice: successfully initialized device 0
[V]   | CAPS_DEVICE_OK
[V]   | CAPS_RT_PLAIN_ALPHA
[V]   | CAPS_RT_TEXTURE_ALPHA
[V]   | CAPS_RT_TEXTURE_OPAQUE
[V]   | CAPS_LCD_SHADER | CAPS_BIOP_SHADER | CAPS_PS20
[V]   | CAPS_AA_SHADER
[V]   | CAPS_PS30
[V]   | CAPS_MULTITEXTURE
[V]   | CAPS_TEXNONSQUARE

Worked all good. Infact better, colour chooser demo no longer flickered.

The drivers I'm using are the latest Windows 7 drivers (8.15.10.1713).

Current project - Rename and Sort
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline trembovetski

Senior Duke




If only I knew what I'm talking about!


« Reply #10 - Posted 2009-05-06 06:33:29 »

Ok, thanks, good to know.

Dmitri
Offline zammbi

JGO Coder


Medals: 4



« Reply #11 - Posted 2009-05-06 07:03:24 »

Does that mean it will be turned on by default in a up coming update if its stable enough?

Current project - Rename and Sort
Offline trembovetski

Senior Duke




If only I knew what I'm talking about!


« Reply #12 - Posted 2009-05-06 15:07:49 »

It will be considered, no promises.
Offline zammbi

JGO Coder


Medals: 4



« Reply #13 - Posted 2009-05-06 16:03:48 »

Great. Then I hope everything goes well then. If you need any testing I'm here.
Post here if there's any news.

Current project - Rename and Sort
Offline zammbi

JGO Coder


Medals: 4



« Reply #14 - Posted 2009-10-22 07:11:22 »

Is there any news on this?
I just grabbed a whole lot of games in a Lan and so far what I've tested runs they all fine (Unreal tournament 3, Mirrors Edge, Halo2, Counter-Strike Source, etc). The latest drivers quite stable, so I see no reason why it can't be turned on by default for the latest ones.

Current project - Rename and Sort
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.

Longarmx (38 views)
2014-10-17 03:59:02

Norakomi (28 views)
2014-10-16 15:22:06

Norakomi (24 views)
2014-10-16 15:20:20

lcass (28 views)
2014-10-15 16:18:58

TehJavaDev (54 views)
2014-10-14 00:39:48

TehJavaDev (54 views)
2014-10-14 00:35:47

TehJavaDev (43 views)
2014-10-14 00:32:37

BurntPizza (64 views)
2014-10-11 23:24:42

BurntPizza (36 views)
2014-10-11 23:10:45

BurntPizza (78 views)
2014-10-11 22:30:10
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06
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!