Fullscreen crash on ATI mobility graphics card

Started by r_bewick, December 18, 2010, 10:11:56

Previous topic - Next topic

r_bewick

Hi, when I go to fullscreen, LWJGL renders the first few frames then crashes without showing any error.

I am using this on Windows 7 64-bit HP pavilion DV6 Notebook, 32 bit Java.

It has switchable graphics between ATI mobility (good) and HD Intel graphics (bad)

It runs fine with fullscreen in Intel HD graphics but not with ATI which should work better.
They both work fine in windowed mode.

Can someone tell me why this is?

Thanks,
r_bewick

bobjob

when you run in fullsreen what display mode frenqueny is set?

if it is set to 30hz or something, less than the usual 60hz. A large framerate drop will be noticed if you have put vSync on.

jediTofu

why does everyone us 32-bit JVM on 64-bit arch?
cool story, bro

Matzon


r_bewick

Thanks for the replies.
64 bit Java was not working well for me, I searched it up and other people had trouble too, so I uninstalled it and installed java 32 bit, + eclipse 32 bit and now everything runs fine.

I am not using VSync, but I checked to make sure my display mode was at 60hz

DisplayMode d[] = Display.getAvailableDisplayModes();
			for (int i = 0; i < d.length; i++) 
			{
	            if (((d[i].isFullscreenCapable() == true) || (_bFullscreen == false)) && (d[i].getWidth() == _iWidth) && (d[i].getHeight() == _iHeight) && (d[i].getFrequency() == 60) && (d[i].getBitsPerPixel() == 32)) 
				{
	            	m_displayMode = d[i];
	                bFoundDisplayMode = true;
	                break;
	            }
	        }


Unfortunately it still doesn't work.
The ATI graphics runs in fullscreen for about a second and then crashes

Any other ideas?
thanks,
r_bewick

jediTofu

Try using the default desktop display mode, if that's not what you're doing.

Also, what does your code look like?
cool story, bro

r_bewick

Thanks for the reply, jediTofu.
I tried using the default desktop display mode, this didn't work either.  :(
What code would you like to see?

Matthias

Did you enable VSync? Maybe the ATI is overheating?

r_bewick

Thanks for the reply,
I enabled VSync and set it to sync at my screens refresh rate but that didn't help.

I don't think my ATI card can overheat in 1 second, especially since I am drawing hardly anything on the screen (I get about 2000 fps in windowed mode) and it runs much more complicated games for long periods fine.

After the ATI card crashes for the first time, when I run the game again the screen is just black, until I restart the computer or switch my card back to intel HD

Any other ideas?
thanks

bobjob

can you run other LWJGL applications in fullscreen?

This link starts in Window mode, but you can set fullscreen in settings
http://users.on.net/~bobjob/TD.jnlp
The app is very yucky, but I dont know another webstart that starts in fullscreen.

anyone got a link to a better webstart that starts in fullscreen?

jediTofu

org.lwjgl.test.opengl.FullScreenWindowedTest

Also, some of the other tests.  You have to push "f" or some other key to switch to fullscreen.

Also, org.lwjgl.examples.spaceinvaders.Game, but have to pass -fullscreen as arg.
cool story, bro

r_bewick

Thanks for the reply.

The http://users.on.net/~bobjob/TD.jnlp didnt work, but
org.lwjgl.test.opengl.FullScreenWindowedTest works fine.
Can you give me the location of the source code for this? I must be doing something slightly wrong.

Thanks  :)

ey6es

I had a very similar problem (crashing when starting up in fullscreen mode on Vista/7), and it turned out that the answer was to disable Direct3D acceleration ("-Dsun.java2d.d3d=false").