I usually create a pixel format using wglChoosePixelFormatARB()
with these arguments (among others):
WGL_DOUBLE_BUFFER_ARB = GL_TRUE
WGL_SAMPLE_BUFFERS_ARB = GL_TRUE
WGL_SAMPLES_ARB = 4
i.e. doubke buffering on and x4 multi sampling. This works just fine.
But when I try to turn of the double buffering:
WGL_DOUBLE_BUFFER_ARB = GL_FALSE
WGL_SAMPLE_BUFFERS_ARB = GL_TRUE
WGL_SAMPLES_ARB = 4
The call to wglChoosePixelFormatARB()
fails (or rather indicates it didn't create anthing)
When I effectively turn multi sampling off:
WGL_DOUBLE_BUFFER_ARB = GL_FALSE
WGL_SAMPLE_BUFFERS_ARB = GL_TRUE
WGL_SAMPLES_ARB = 1
I works fine again.
Is there something inherent that prevents a non-double buffered pixel format to work with multi-sampling?
The reason I'm turning double buffering off is to achieve unconstrained frame rate. with double buffering the frame rate I get is only un to 60 FPS (this laptop LCD works at 60Hz). But with double buffering off I can get up to 1500 FPS. Is there a way to achieve this with double buffering on?