mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-02-22 04:49:12 -06:00
Correctly disable vsync if requested
This commit is contained in:
@@ -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": {]])
|
||||
|
||||
Reference in New Issue
Block a user