]> git.sesse.net Git - casparcg/commitdiff
Turned off vsync by default in screen consumer.
authorHelge Norberg <helge.norberg@svt.se>
Tue, 1 Dec 2015 10:00:18 +0000 (11:00 +0100)
committerHelge Norberg <helge.norberg@svt.se>
Tue, 1 Dec 2015 10:00:18 +0000 (11:00 +0100)
modules/screen/consumer/screen_consumer.cpp

index ae8960b4c48af701a14f1ab0bf78f3c96ef7cfa8..3f0e4dedaef22134bd09dca287eeaa2549991fde 100644 (file)
@@ -106,7 +106,7 @@ struct configuration
        bool                    auto_deinterlace        = true;
        bool                    key_only                        = false;
        aspect_ratio    aspect                          = aspect_ratio::aspect_invalid;
-       bool                    vsync                           = true;
+       bool                    vsync                           = false;
        bool                    interactive                     = true;
        bool                    borderless                      = false;
 };
@@ -283,17 +283,6 @@ public:
                {
                        CASPAR_LOG(info) << print() << " Enabled vsync.";
                }
-               /*auto wglSwapIntervalEXT = reinterpret_cast<void(APIENTRY*)(int)>(wglGetProcAddress("wglSwapIntervalEXT"));
-               if(wglSwapIntervalEXT)
-               {
-                       if(config_.vsync)
-                       {
-                               wglSwapIntervalEXT(1);
-                               CASPAR_LOG(info) << print() << " Enabled vsync.";
-                       }
-                       else
-                               wglSwapIntervalEXT(0);
-               }*/
        }
 
        void uninit()