Archived

This topic is now archived and is closed to further replies.

V3rt3x

pb in fullscreen mode with stencil buffer (slow :( )

Recommended Posts

hi all! I have a little problem : I use a stencil buffer in my ogl app (win32). In windowed mode, there is no problem, but when I switch to fullscreen mode the application is as slow as if the stencil buffer was disabled (hu I don''t know how to say that... like if we use stencil buffer in glut without GLUT_STENCIL) were the pb could come from? the PIXELFORMATDESCRIPTOR ? help me please thanks!

Share this post


Link to post
Share on other sites
My guess is that your app kicks back in software mode for some reason or the other. It could be that you request a pixelformat that''s not available and your app selects another one (without the stencil buffer).

If you want to know which pixelformats are available to you: There''s a small c program at opengl.org (sample code -> rendering somewhere) which gives you a list of all available pixelformats.


Sander Maréchal
[Lone Wolves Production][Articles][GD Emporium][E-mail]

Share this post


Link to post
Share on other sites
There was someone on the NeHe board a while ago with this problem, it turned out the problem was in windowed mode, the screen was 32bpp, but in fullscreen it was 16bpp, and that caused the stencil buffer to be very slow.

Share this post


Link to post
Share on other sites