glfullscreen false question. *resolved

Started by Disastorm, June 13, 2011, 05:13:16 AM

Previous topic - Next topic

Disastorm

Hello, I noticed that if I have glfullscreen set to false my game lags quite a bit but when i set it to fullscreen it is perfectly smooth.  Is this normal?  This started happening when i tried to add in a mirror which is basically an object that has a camera that renders to the object's texture.

EgonOlsen

Depending on the driver/OS/hardware, windowed mode can be slower than fullscreen. Do you have some frame rate numbers for both modes?

Disastorm

#2
i think the frame rate is the same when its not lagging.  It starts lagging as soon as i walk in range of the second camera which is rendering to the texture.  Like almost freezes less than 1 fps.  Im on Windows 7 64 bit and using a Radeon HD 5870.  Im not entirely sure when it started happening I used to have a sphere that had texture rendered from the same camera as the display in windowed mode (only had 1 camera at this time) and it didn't lag at all, but then i started testing stuff in fullscreen and didn't realize that at some point, my windowed mode got messed up.  

However, I noticed if I removed some of the objects in my world the lag vanished.  Alternatively, if I ended the windows process svchost (it was using 200mb of memory), the lag would basically dissapear as well until svchost was automatically started back up.  Not sure why that happens, I did notice that when svc host is terminated, the start menu bar on Windows 7 becomes a solid color instead of being transparent so I dunno if thats related to anything.

EgonOlsen

Looks like as if Windows disables Aero (the taskbar changing color is an indicator for this). Actually, this shouldn't happen but there's nothing i can do about it. It's either a driver or a LWJGL problem. You might want to try the latest version of LWJGL, in case that you haven't done that already.

Disastorm

#4
*edit: it turns out i was already using the most recent version of lwjgl but not jpct.  Upgrading JPCT from 1.21 to 1.23 actually fixed the problem.  Good job on your updates!  I did confirm that Aero was what was messing up the 1.21 jpct's windowed mode, but it looks like you fixed that.

EgonOlsen

I'm not aware of any changes between those versions, that would explain this, but if all is fine now... ;D