commit 64ad608320435aaf69026a5745fbcdea9177700f
Author: Jonathan Dowland <jon+github@alcopop.org>
AuthorDate: Tue Feb 21 17:16:44 2017 +0000
Commit: Jonathan Dowland <jon+github@alcopop.org>
CommitDate: Tue Feb 21 17:16:44 2017 +0000
Don't enable vsync for -timedemo mode
---
src/i_video.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/src/i_video.c b/src/i_video.c
index 4ca10643..db524fad 100644
--- 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 @@ static void SetVideoMode(void)
// 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)
{