From 3f6fccb37310aa56d4306d59a7cce3df46826e7a Mon Sep 17 00:00:00 2001 From: Alexander Bock Date: Wed, 23 Feb 2022 13:40:40 +0100 Subject: [PATCH] Correctly disable vsync if requested --- scripts/configuration_helper.lua | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/scripts/configuration_helper.lua b/scripts/configuration_helper.lua index 6f524c213a..b18e7f158b 100644 --- a/scripts/configuration_helper.lua +++ b/scripts/configuration_helper.lua @@ -53,7 +53,7 @@ function sgct.config.single(arg) end -- shared: Determines whether the contents of the window should be shared using the SPOUT library [example: shared=true] {default: false} -- Expert settings: --- vsync: Whether the rendering speed is locked to the refreshrate [example: vsync=true] {default: false} +-- vsync: Whether the rendering speed is locked to the refreshrate [example: vsync=true] {default: true} -- refreshRate: If vsync is enabled, this is the target framerate [example: refreshRate=30] {default: infinity} -- stereo: Select the stereo rendering mode as supported by SGCT [example: stereo='anaglyph_red_cyan'] {default: 'none'} -- msaa: The multisampling anti-aliasing factor [example: msaa=8] {default: 4} @@ -279,11 +279,9 @@ function generateCluster(arg, viewport) table.insert(result, [[ "debug": ]] .. tostring(arg["sgctdebug"]) .. [[,]]) end - if (arg["settings"]) then - table.insert(result, [[ "settings": {]]) - generateSettings(result, arg["refreshRate"], arg["vsync"]) - table.insert(result, [[ },]]) - end + table.insert(result, [[ "settings": {]]) + generateSettings(result, arg["refreshRate"], arg["vsync"]) + table.insert(result, [[ },]]) if arg["scene"] then table.insert(result, [[ "scene": {]])