thomasd3's picture

OpenTK slow initialization

When starting OpenTK, on a pretty fast machine, I get this:

DisplayDevice 2 (secondary) supports 222 resolutions.
Creating default GraphicsMode (32, 16, 0, 0, 0, 2, False).
Creating GraphicsContext.
GraphicsMode: Index: 2, Color: 0 (0000), Depth: 0, Stencil: 0, Samples: 0, Accum: 0 (0000), Buffers: 2, Stereo: False
IWindowInfo: Windows.WindowInfo: Handle 2557474, Parent (Windows.WindowInfo: Handle 1509124, Parent (null))
GraphicsContextFlags: Default
Requested version: 1.0
Loaded opengl32.dll: 1682505728
OpenGL will be bound to window:2557474 on thread:1
Setting pixel format...
Creating temporary context for wgl extensions.
Load extensions for OpenTK.Platform.Windows.Wgl... 50 extensions loaded in 31 ms.
Using WGL_ARB_create_context... success! (id: 131072)
Retrieving ARB pixel formats.... Disposing context 131072.
Destroying window: Windows.WindowInfo: Handle 1509124, Parent (null)
Creating GraphicsContext.
GraphicsMode: Index: 10, Color: 32 (8888), Depth: 24, Stencil: 8, Samples: 0, Accum: 64 (16161616), Buffers: 2, Stereo: False
IWindowInfo: Windows.WindowInfo: Handle 5767482, Parent (Windows.WindowInfo: Handle 1574660, Parent (null))
GraphicsContextFlags: Default
Requested version: 1.0
OpenGL will be bound to window:5767482 on thread:1
Setting pixel format... 10
Using WGL_ARB_create_context... success! (id: 196608)
Load extensions for OpenTK.Platform.Windows.Wgl... 50 extensions loaded in 2 ms.
Loading extensions for OpenTK.Graphics.OpenGL.GL... 2279 extensions loaded in 4991.6731 ms.

As you can see on the last line, the initialization takes 5 seconds; is there a way to disable some of the extensions that get parsed?