Buffer fliping mode

  • Follow


When I create a windowed application, to present the backbuffer on the 
screen, the method "Block Transfer" is used. Read "memcpy" :)

However, when I go fullscreen, Buffer flipping is used.

Now, my question. If I start the application in windowed mode and go to 
fullscreen via window stretching and "ChangeDisplaySettings" function 
with the CDS_FULLSCREEN parameter, will my app be automaticaly using 
buffer flipping or do I have to reinitialize the GL rendering context?

If it will auto-detect, will that work on all cards?

How do you handle this issue?

-----------------
Kresimir Spes
Cateia Games
http://games.cateia.com
http://tnz2.cateia.com
0
Reply DigitalDragon 2/15/2005 10:05:32 PM

DigitalDragon wrote:

> When I create a windowed application, to present the backbuffer on the 
> screen, the method "Block Transfer" is used. Read "memcpy" :)
> 
> However, when I go fullscreen, Buffer flipping is used.
> 
> Now, my question. If I start the application in windowed mode and go to 
> fullscreen via window stretching and "ChangeDisplaySettings" function 
> with the CDS_FULLSCREEN parameter, will my app be automaticaly using 
> buffer flipping or do I have to reinitialize the GL rendering context?
> 
> If it will auto-detect, will that work on all cards?
> 
> How do you handle this issue?

On Windows the proper action is to destroy and recreate the GL rendering context 
(including reloading all textures and display lists) whenever the screen 
settings are changed.

> -----------------
> Kresimir Spes
> Cateia Games
> http://games.cateia.com
> http://tnz2.cateia.com

-- 
Phil Frisbie, Jr.
Hawk Software
http://www.hawksoft.com

0
Reply Phil 2/15/2005 11:55:31 PM


DigitalDragon wrote:
> When I create a windowed application, to present the backbuffer on the 
> screen, the method "Block Transfer" is used. Read "memcpy" :)
> 
> However, when I go fullscreen, Buffer flipping is used.
> 

Usually, yes.

> Now, my question. If I start the application in windowed mode and go to 
> fullscreen via window stretching and "ChangeDisplaySettings" function 
> with the CDS_FULLSCREEN parameter, will my app be automaticaly using 
> buffer flipping or do I have to reinitialize the GL rendering context?
> 

You really need to create a new window.

If your pixel format is compatible then you
can keep/share the rendering context. If not
you have to create a new one and recreate all
your textures, etc.

-- 
<\___/>
/ O O \
\_____/  FTB.    For email, remove my socks.
0
Reply fungus 2/16/2005 12:20:33 AM

2 Replies
158 Views

(page loaded in 0.074 seconds)

Similiar Articles:












7/11/2012 9:47:32 PM


Reply: