]> git.lizzy.rs Git - dragonblocks_alpha.git/blobdiff - src/client/client_config.c
Add vsync setting
[dragonblocks_alpha.git] / src / client / client_config.c
index 43743c1ae6d7ec7c7efb520d0e092ed895b4fae1..658fe5e1fe714e8dca7c1469720de6a4f4ab6037 100644 (file)
@@ -5,6 +5,7 @@ struct ClientConfig client_config = {
        .antialiasing = 4,
        .mipmap = true,
        .render_distance = 255.0,
+       .vsync = true,
 };
 
 __attribute__((constructor)) static void client_config_init()
@@ -24,7 +25,12 @@ __attribute__((constructor)) static void client_config_init()
                        .type = CT_FLOAT,
                        .key = "render_distance",
                        .value = &client_config.render_distance,
+               },
+               {
+                       .type = CT_BOOL,
+                       .key = "vsync",
+                       .value = &client_config.vsync,
                }
-       }, 3);
+       }, 4);
 }