Uses the SetDisplayConfig() API in Windows if available to switch fullscreen modes. In Windows 10, this can cause display modes to change instantly without causing the display to flicker.
Note that if the application crashes, the display mode will not be automatically restored to its previous settings.