shithub: choc

Download patch

ref: 64ad608320435aaf69026a5745fbcdea9177700f
parent: 66b66773dbb572503a478ce50b976eb6764d20cb
author: Jonathan Dowland <jon+github@alcopop.org>
date: Tue Feb 21 12:16:44 EST 2017

Don't enable vsync for -timedemo mode

--- a/src/i_video.c
+++ b/src/i_video.c
@@ -28,6 +28,7 @@
 #include "icon.c"
 
 #include "config.h"
+#include "d_loop.h"
 #include "deh_str.h"
 #include "doomtype.h"
 #include "i_input.h"
@@ -1200,8 +1201,11 @@
     // intermediate texture into the upscaled texture.
     renderer_flags = SDL_RENDERER_TARGETTEXTURE;
 	
-    // Turn on vsync
-    renderer_flags |= SDL_RENDERER_PRESENTVSYNC;
+    // Turn on vsync if we aren't in a -timedemo
+    if (!singletics)
+    {
+        renderer_flags |= SDL_RENDERER_PRESENTVSYNC;
+    }
 
     if (force_software_renderer)
     {