[Win] Improve WinMM.GetCapabilities performance
authorStefanos A <stapostol@gmail.com>
Thu, 16 Jan 2014 22:35:31 +0000 (23:35 +0100)
committerthefiddler <stapostol@gmail.com>
Thu, 11 Sep 2014 10:51:46 +0000 (12:51 +0200)
commit9cf3deea8c03f8ae0094ade008794ce6e9f30470
tree0e2eb47f3dcb5df9312333a9c8acf8defe33354d
parentc3b289ee9ba0cffb28288b7eb7a4dd4746c57ddb
[Win] Improve WinMM.GetCapabilities performance

Polling joyGetCaps is very very slow, so we should not do that every
time GetCapabilities is called. Instead, we should call joyGetCaps once
and cache the results.

We need to find a different way to implement hotplugging.
Source/Examples/Main.cs
Source/OpenTK/Platform/Windows/WinCombinedJoystick.cs
Source/OpenTK/Platform/Windows/WinGLNative.cs